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
Install Daemontools: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
|||
Line 26: | Line 26: | ||
*cd /service/ | *cd /service/ | ||
*ln -s /var/service/age.errors/ | *ln -s /var/service/age.errors/ | ||
==Make Daemontools boot automatically with systemd== | |||
*vi [[/lib/systemd/system/daemontools.service]] |
Revision as of 19:58, 17 June 2015
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/