Creating a Ubuntu Custom Daemon

What is the β€œright” way to create a custom Ubuntu daemon that starts at boot time and is controlled by the standard Ubuntu daemon start / stop commands?

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

+7
linux shell ubuntu daemon
source share
2 answers

Done .

2nd result for Google: ubuntu daemon startup

0
source share

Since you specifically asked about Ubuntu, you should be aware that sysv-style initialization scripts (those that live under /etc/init.d) are phasing out in favor of Upstart jobs, which IMHO is much 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

+11
source share

All Articles