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 output of $ rc.d list
. Googling around, I have seen mention of update-rc.d
, but it seems that command is not available in Arch Linux. What is the right way of adding a system-wide daemon (i.e., without using rc.local
) that can be used the same way as the defaults?
Linux – How Do I Add My Own Daemons in Arch Linux? (BSD-style init)
arch linuxbsddaemoninit
Best Answer
What does update-rc.d to do with Arch ? that's for debian based distros.
A sample script, put it in /etc/rc.d/XX and make it executable, and edit /etc/rc.conf, push the name of the service into DAEMONS array
If you're not seeing the daemon in list, you've probably missed the
add_daemon
function