1
vote
1answer
277 views

service vs. initctl in Ubuntu

Why are some deamons run out of service and some out of initctl in Ubuntu? Do both tools do the same thing and it is just a matter of personal preference of the user what they will use? E.g. sudo ...
1
vote
2answers
424 views

Which script from /etc/init.d/ started the process?

Let's say we have a PID of a process and we know that it was started by init during startup. How do we find the script name that started it? One way is to run grep $PROCESS_NAME /etc/init.d/*, but ...
2
votes
2answers
2k views

/etc/init.d/script, or /etc/inittab - respawn on die

I have a daemon/service (milter-regex), that is dying. I'm only using it temporarily (A few months), so don't care too much, but I want it to restart when it dies. It is an init.d script. 'service ...
6
votes
1answer
2k views

How Do I Add My Own Daemons in Arch Linux? (BSD-style init)

I have created a symlink to a start/stop/etc. wrapper bash script in /etc/rc.d, added it to DAEMONS=() in rc.conf, but the process it points to isn’t starting on boot, and isn’t showing up in the ...
2
votes
5answers
2k views

How can I run a daemon with custom parameters

I am wondering how I can run a daemon, in this case NTP, with custom parameters. For example in my Ubuntu PC I observe that I've got ntpd running this way: $ ps aux | grep ntpd ntp 5936 ... 0:00 ...