################################################################################ # USAGE ################################################################################ # start: svc -u /etc/service/hans/ # stop: svc -d /etc/service/hans/ # uptime: svstat /etc/service/hans/ ################################################################################ # INSTALL ################################################################################ adduser --system --group hans # copy hans, .hansrc and hans.db to /home/hans/ ; change owner afterwards: chown hans: /home/hans/hans /home/hans/hans.db /home/hans/.hansrc aptitude install libproc-daemon-perl libio-socket-ssl-perl libnet-irc-perl libconfig-auto-perl libdbd-sqlite3-perl daemontools-run mkdir -p /etc/service/hans/ echo '#!/bin/sh cd /home/hans/ exec setuidgid hans ./hans ' > /etc/service/hans/run chmod 755 /etc/service/hans/run