https://github.com/phstc/pup
Start, stop and do not monitor processes
https://github.com/phstc/pup
Last synced: about 1 year ago
JSON representation
Start, stop and do not monitor processes
- Host: GitHub
- URL: https://github.com/phstc/pup
- Owner: phstc
- License: mit
- Created: 2014-10-07T11:36:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-07T20:04:24.000Z (over 11 years ago)
- Last Synced: 2025-03-22T08:48:23.618Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 145 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pup
Start, stop and do not monitor processes.
## Usage
### Configuration
Create the `pup.json` configuration file in your home directory: `~/pup.json`.
```json
{
"apps": [
{
"name": "railsapp",
"cmd": "bundle exec rails s -p4000",
"chdir": "/Users/pablo/workspace/railsapp",
"pidfile": "/Users/pablo/railsapp.pid"
},
{
"name": "standaloneapp",
"cmd": "bin/start",
"chdir": "/Users/pablo/workspace/standaloneapp",
"pidfile": "/Users/pablo/standaloneapp.pid"
},
{
"name": "sinatraapp",
"cmd": "rackup",
"chdir": "/Users/pablo/workspace/sinatraapp",
"pidfile": "/Users/pablo/sinatraapp.pid"
}
]
}
```
### Available commands:
```bash
Usage:
pup (start|stop|restart|status) []
```
```bash
$ pup status
railsapp no such process
standaloneapp no such process
sinatraapp no such process
$ pup start railsapp
starting railsapp with pid 10268
$ pup status railsapp
railsapp is running with pid 10268
$ pup stop railsapp
stopping railsapp with pid 10268
$ pup status railsapp
railsapp no such process
```