-
-
Save dikkatdeli/ff2d7941294adaff24c43acefa23cca0 to your computer and use it in GitHub Desktop.
Installing daemontools in centos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://sheeju.github.io/2018/07/running-services-using-daemontools-svc.html
http://shokunin.co/blog/2013/03/18/using_daemontools.html