wiki:runit/replace-daemontools
proton:~ 0# tinydns-conf tinydns dnslog /etc/tinydns 127.0.0.1
proton:~ 0# cd /etc/tinydns/
proton:/etc/tinydns 0# ln -s /var/run/sv.tinydns supervise
proton:/etc/tinydns 0# cd log/
proton:/etc/tinydns/log 0# ln -s /var/run/sv.tinydns.log supervise
proton:/etc/tinydns/log 0# rm -rf main
proton:/etc/tinydns/log 0# ln -s /var/log/tinydns main
proton:/etc/tinydns/log 0# cat run
#!/bin/sh
set -e
LOG=/var/log/tinydns
test -d "$LOG" || mkdir -p -m0750 "$LOG" && chown dnslog:adm "$LOG"
exec chpst -udnslog:adm svlogd -tt ./main
proton:/etc/tinydns/log 0# cd /var/service
proton:/var/service 0# ln -s /etc/tinydns .
proton:/var/service 0# 
Last modified 10 years ago Last modified on Dec 29, 2007, 2:50:39 PM