Skip to content

Instantly share code, notes, and snippets.

@toddlers
Last active June 17, 2022 15:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save toddlers/9364259 to your computer and use it in GitHub Desktop.
Save toddlers/9364259 to your computer and use it in GitHub Desktop.
Installing daemontools in centos
1. Install wget gcc and wget
yum install gcc wget
2. Create a folder setup and wget the source
mkdir -p /package
chmod 1755 /package
cd /package
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
tar -xzvf daemontools-0.76.tar.gz
rm daemontools-0.76.tar.gz
cd daemontools-0.76
3. Install the daemontools
echo gcc -O2 -include /usr/include/errno.h > src/conf-cc
./package/install
4. Fix Deamontools for CentOS 6.x. To do that simply remove the added line from /etc/inittab then issue this:
echo "start on runlevel [12345]" > /etc/init/svscan.conf
echo "respawn" >> /etc/init/svscan.conf
echo "exec /command/svscanboot" >> /etc/init/svscan.conf
5. Start svscan
initctl reload-configuration
initctl start svscan
6. That’s it. Now you can check it using command below:
ps -ef|grep svscan
7. Creating services see this http://isotope11.com/blog/manage-your-services-with-daemontools
8. Daemontools chef cookbook for centos https://github.com/CPAN-API/prepan-cookbooks/tree/master/site-cookbooks/daemontools
@dikkatdeli
Copy link

Can you add this line : cd admin/daemontools-0.76 after rm daemontools-0.76.tar.gz

otherwise, people who follow steps will be misdirected.

Thank you.

@DykiSA
Copy link

DykiSA commented Dec 4, 2021

Thank you, very helpful. Need a cd daemontools-0.76 command to navigate to the extracted directory after rm daemontools-0.76.tar.gz though but appreciate that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment