You are not logged in.
Pages: 1
How does the init script system on Arch work? Coming from Ubuntu, if I wanted to add a startup script I just added it to /etc/init.d and ran update-init.d to create the necessary symlinks.
I've looked on the wiki and searched the forum, but not found much on it. If I wanted to add a startup script, what's the best approach? It seems like the recommended way is to add the script to rc.d and to add a line to execute it in rc.local.
Offline
create your script in /etc/rc.d/ (look at the scripts there how there are made), and add it to the daemons array in /etc/rc.conf
Offline
It's not a daemon, though, just a script that does a bit of stuff for me. Is the daemons array in rc.conf the only script that runs anything from rc.d?
Offline
Sorry I did misunderstood you than. In that case you should put in in /usr/local/bin (for system wide scripts) and call it from /etc/rc.local
Offline
It doesn't matter if it's a daemon or not, look for example at the /etc/rc.d/alsa script. It sure isn't a daemon but it's still in /etc/rc.d/ and it's still called from the daemons array in rc.conf . No, there are no symlinks, which simply means there isn't a program neither.
Offline
As said above though, if it's just some random stuff on boot, and rc.d daemon isnt really needed, rc.local is fine.
Offline
Offline
Pages: 1