File: UNINSTALL-daemontools

package info (click to toggle)
leafnode 1.11.10-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,460 kB
  • ctags: 597
  • sloc: ansic: 10,894; sh: 1,736; xml: 628; makefile: 291; perl: 84; sed: 4
file content (20 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
# UNINSTALL-daemontools
# (C) 2002, 2008 by Matthias Andree
#
# For licensing conditions, see the file COPYING found at the top-level
# directory of the leafnode-1 distribution tarball.
#
# Should your leafnode be configured for daemontools,
# here's how to get rid of it:

# switch to actual directory:
cd /service/leafnode-1
# and remove the symlink to it:
rm /service/leafnode-1
# wait until svscan has noticed the symlink is gone:
sleep 6
# now kill and terminate:
svc -dx .
# and cd back to prior working directory
cd "$OLDPWD"