Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
Difference between revisions of "Install Daemontools"
From COCNM
(→Configure) |
(→Make Daemontools boot automatically with systemd) |
||
Line 29: | Line 29: | ||
==Make Daemontools boot automatically with systemd== | ==Make Daemontools boot automatically with systemd== | ||
*vi [[/lib/systemd/system/daemontools.service]] | *vi [[/lib/systemd/system/daemontools.service]] | ||
+ | *ln -s /lib/systemd/system/daemontools.service /etc/systemd/system/multi-user.target.wants/daemontools.service |
Latest revision as of 21:01, 17 June 2015
Contents
Server Prep
- apt-get install build-essential
Obtain and install
- cd /usr/src
- wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
- tar zxf daemontools-0.76.tar.gz
- cd admin/daemontools-0.76/
- sed -i 's/extern int errno;/#include <errno.h>/' src/error.h
- ./package/install
Configure
- echo "alias t64='tail -f current | tai64nlocal'" >> /root/.bashrc
- echo "alias l64='cat current | tai64nlocal | less'" >> /root/.bashrc
- echo "alias t64all='tail -f /service/*/log/main/current | tai64nlocal'" >> /root/.bashrc
- echo "alias sv='svstat /service/*'" >> /root/.bashrc
- echo "PATH=/usr/local/nagios/bin:/usr/local/nagios/sbin:/usr/local/samba/bin/:/usr/local/samba/sbin/:/var/qmail/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /root/.bashrc
- echo "export PATH" >> /root/.bashrc
- mkdir -p -m 1755 /var/service/age.errors
- mkdir -p -m 0755 /var/service/age.errors/log
- vi /var/service/age.errors/run
- vi /var/service/multilog.run
- ln -s /var/service/multilog.run /var/service/age.errors/log/run
- chmod 0755 /var/service/age.errors/run
- chmod 0755 /var/service/age.errors/log/run
- cd /service/
- ln -s /var/service/age.errors/
Make Daemontools boot automatically with systemd
- vi /lib/systemd/system/daemontools.service
- ln -s /lib/systemd/system/daemontools.service /etc/systemd/system/multi-user.target.wants/daemontools.service