- Copy the script into /etc/init
- To make upstart distinguish the new service, run:
$ initctl reload-configuration
- Check whether your script is already in upstart by running:
$ initctl list | grep cat
cat stop/waiting
- And you are done, you can check the status of your service by running:
$ service cat
status cat stop/waiting- You can also do the same with start, stop and restart
$ service cat start * Starting cat .... [OK]
$ service cat stop * Stopping cat .... [OK]
- $ service cat restart * Restarting cat .... [OK]
No comments:
Post a Comment