1 #! /bin/sh 2 # UNINSTALL-daemontools 3 # (C) 2002, 2008 by Matthias Andree 4 # 5 # For licensing conditions, see the file COPYING found at the top-level 6 # directory of the leafnode-1 distribution tarball. 7 # 8 # Should your leafnode be configured for daemontools, 9 # here's how to get rid of it: 10 11 # switch to actual directory: 12 cd /service/leafnode-1 13 # and remove the symlink to it: 14 rm /service/leafnode-1 15 # wait until svscan has noticed the symlink is gone: 16 sleep 6 17 # now kill and terminate: 18 svc -dx . 19 # and cd back to prior working directory 20 cd "$OLDPWD"