Create a bin script to easily launch the server from anywhere on the system
mattmcmanus opened this issue · comments
ummon-server start --config=/etc/ummon/config.json
Commands:
- start: start a process
- --config: pass a path for the config file
- --deamon: Start in the background, generating a pid file
- stop: kill process, rm pid
- restart
[ ] reload: Reload config file
Looks like a great start, making it easy to set up init scripts. Nice!
@gsf Do you have thoughts on where the pids should go? In the project folder/pids or in /var/pids
? I'm assuming this can be configurable as well. Where should be the default?
Pids should go in /var/run by default.
Nicking reload for now because it will require a lot. Something like that can only be done through the API since it's for the running process and it seems excessive to require the api client on the server?
Deleted all this! Closing this out as we're not doing a full featured cli tool for the server. See #48