https://github.com/devfans/wizard
A light-weight process bootstrap to start/stop/check a process
https://github.com/devfans/wizard
Last synced: 6 months ago
JSON representation
A light-weight process bootstrap to start/stop/check a process
- Host: GitHub
- URL: https://github.com/devfans/wizard
- Owner: devfans
- License: gpl-3.0
- Created: 2019-08-23T08:28:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-09-26T11:41:21.000Z (6 months ago)
- Last Synced: 2025-09-26T13:28:02.347Z (6 months ago)
- Language: Go
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wizard
A light-weight process bootstrap to manage a process
## Get Started
```
NAME:
wizard - The awesome process manager
USAGE:
wizard [global options] command [command options] [arguments...]
COMMANDS:
start Launch the process
stop Stop the running process
status Check status of the process
restart Restart the process
daemon Wizard daemon process to watch specified processes
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
-c value, --config value, --conf value wizard configuration file (default: ".wiz")
--help, -h show help (default: false)
```
## Configuration
Default config file `.wiz`, to specify a config file `wizard -c app.wiz start/stop/restart/status`
Sample configuration
```
[main]
dir = .
log = app.log
pid = app.pid
cmd = server-run -c 1 -s 2
[env]
var1=value1
var2=value2
```
## Daemon
Wizard can start a daemon process to watch specified processes in config file.
Sampe config file `.wiz`
```
[main]
cmd = wizard daemon
[daemon]
~/app1
~/app2/dir2
~/app3/.wiz
```
Sample `~/app1/.wiz`
```
cmd = server-run -s -c
no_daemon = false // set true to skip daemon watching
interval = 1000 // specify daemon watch interval(ms)
```