"Fossies" - the Fresh Open Source Software Archive

Member "leafnode-1.12.0/UNINSTALL-daemontools" (28 Dec 2021, 544 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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"