Manage your service with upstart in Ubuntu

Just add one file to /etc/init with contents like this:

description "Your Server"

start on (net
-device-up and local-filesystems and runlevel [2345])
stop on runlevel [016
]

respawn

exec your
-server-path-name >> /var/log/your-server.log

Reference: http://upstart.ubuntu.com/wiki/

posted @ 2011-06-23 12:48  ALLI Look for Lost Idylls  阅读(246)  评论(0编辑  收藏  举报