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

From COCNM
Jump to navigation Jump to search
 
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 20:01, 17 June 2015

Server Prep

  • apt-get install build-essential

Obtain and 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