开发者

Creating a Custom Ubuntu Daemon

开发者 https://www.devze.com 2023-01-03 22:00 出处:网络
What\'s the \"correct\" way to create a custom daemon in Ubuntu, that will start at boot tim开发者_开发百科e and be controllable by Ubuntu\'s standard daemon start/stop commands?

What's the "correct" way to create a custom daemon in Ubuntu, that will start at boot tim开发者_开发百科e and be controllable by Ubuntu's standard daemon start/stop commands?

Can I just copy and paste one of the scripts in /etc/init.d or do I need to "register" the daemon somewhere else?


Since you asked about Ubuntu specifically, you should know that sysv-style init scripts (the ones that live under /etc/init.d) are being phased out in favor of Upstart jobs, which IMHO are a lot easier to create and work with. Here are some links to get you started:

http://upstart.ubuntu.com/

http://en.wikipedia.org/wiki/Upstart

http://www.netsplit.com/category/tech/upstart/

http://manpages.ubuntu.com/manpages/lucid/man5/init.5.html


Done.

2nd result for Google: ubuntu daemon startup

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号