pmgo is a process manager for Golang applications.
313
PMGO is a lightweight process manager written in Golang for Golang applications. It helps you keep your applications alive forever, reload and start them from the source code.
repo: https://github.com/struCoder/pmgo
$ go get github.com/struCoder/pmgo
$ mv $GOPATH/bin/pmgo /usr/local/bin
Or
curl https://raw.githubusercontent.com/struCoder/pmgo/master/install.sh | sh
In order to properly use pmgo, you always need to start a server. This will be changed in the next version, but in the meantime you need to run the command bellow to start daemon using pmgo.
$ pmgo serve
If no config file is provided, it will default to a folder ~/.pmgo where pmgo is first started.
$ pmgo kill
If it's the first time you are starting a new golang application, you need to tell pmgo to first build its binary. Then you need to first run:
$ pmgo start source app-name
This will automatically compile, start and daemonize your application. If you need to later on, stop, restart or delete your app from PMGO, you can just run normal commands using the app-name you specified. Example:
$ pmgo stop app-name
$ pmgo restart app-name
$ pmgo delete app-name
$ pmgo serve # start pmgo daemon process
$ pmgo kill # kill pmgo daemon process
$ pmgo start source app-name # Compile, start, daemonize and auto restart application.
$ pmgo restart app-name # Restart a previously saved process
$ pmgo stop app-name # Stop application.
$ pmgo delete app-name # Delete application forever.
$ pmgo save # Save current process list
$ pmgo resurrect # Restore previously saved processes
$ pmgo list # Display status for each app.
$ pmgo info app-name # describe importance parameters of a process name
Content type
Image
Digest
Size
6.5 MB
Last updated
over 9 years ago
docker pull strucoder/pmgo