Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

None of my daemon scripts work now, and the startup process displayed errors. Should I reinstall the OS and start from scratch, or is there a way to recover these files? Is there a way to rebuild the files I deleted?

share|improve this question
up vote 3 down vote accepted

The functions.d directory should be empty by default (unless you have added some custom functions there), for the functions file try replacing it with this working copy.

I suspect they are the same with each installation.

share|improve this answer
Thank you so much!! I copied the functions file and rebooted, and everything is working perfectly. – Vortico Mar 19 '11 at 23:36

/etc/rc.d/functions is a file, owned by the initscripts package.

Boot from an Arch CD, mount your root partition, and use pacman -Syr /mnt initscripts to reinstall.

/etc/rc.d/functions.d/ is a folder, empty by default. It's for user-defined functions.

share|improve this answer
I must have gotten the file/folder confused earlier, but this makes more sense. However, I used user69175's method since he posted first. Would you recommend reinstalling the initscripts package even though everything (seems to be) working properly? – Vortico Mar 19 '11 at 23:41
I just realized that since SSH and networking is running, I could simply use pacman -S initscripts. I did so, and everything is back to normal! – Vortico Mar 19 '11 at 23:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.