I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up.
I am a beginner on Linux systems.
I have tried to modify
/etc/init.d/skeleton to add a script into the init.d directory as follows
added my daemon application in
/usr/sbin/directory and changed
update-rc.d myDaemon defaultin Terminal
and it added symbolic links to
But it didn't work.
My second try was to modify
But this didn't work either.
How can I make my daemon start with the OS? I want to do everything programmatically.
I use Ubuntu 10.10 but if there exists a general solution for all distributions, that would be great!