summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-03-09 03:26:50 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-03-09 03:26:50 +0100
commit4538fd673d9de4a9764f7ce96e35dc9d4e4977cf (patch)
treeb47d494ac058f89a207b3c8219560bea557d5780 /ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init
parent5fff8c470474773fad5bd31decf0aa25a5c4f59b (diff)
downloadtde-packaging-4538fd673d9de4a9764f7ce96e35dc9d4e4977cf.tar.gz
tde-packaging-4538fd673d9de4a9764f7ce96e35dc9d4e4977cf.zip
Housekeeping in Debian and Ubuntu
Diffstat (limited to 'ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init')
-rw-r--r--ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init114
1 files changed, 0 insertions, 114 deletions
diff --git a/ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init b/ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init
deleted file mode 100644
index 12eabe994..000000000
--- a/ubuntu/maverick_automake/kdenetwork/debian/lisa-kde3.init
+++ /dev/null
@@ -1,114 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: lisa-kde3
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-### END INIT INFO
-
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/sbin/lisa
-NAME=lisa-kde3
-PIDFILE=/var/run/$NAME.pid
-DESC="LAN Information Server"
-
-test -f $DAEMON || exit 0
-
-set -e
-
-is_running ()
-{
- if [ -e "$PIDFILE" ]
- then
- #checking if program is running
- if [ -L /proc/`cat $PIDFILE`/exe ]
- then
- #checking for stale pidfile
- if grep -q $NAME /proc/`cat $PIDFILE`/cmdline
- then
- #program is running and is called lisa
- return 0
- fi
- fi
- rm -f $PIDFILE
- fi
- #program is not running
- return 1
-}
-
-case "$1" in
- start)
- if is_running
- then
- echo "$DESC is already running. Not doing anything"
- exit 0
- fi
- echo -n "Starting $DESC: "
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
- > /dev/null
- echo $(pidof lisa) > $PIDFILE
- echo "$NAME."
- ;;
- stop)
- if ! is_running
- then
- echo "$DESC is not running. Not doing anything"
- exit 0
- fi
- echo -n "Stopping $DESC: "
- start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
- --exec $DAEMON
- rm -f $PIDFILE
- echo "$NAME."
- ;;
- reload|force-reload)
- echo "Reloading $DESC configuration files."
- start-stop-daemon --stop --quiet --signal 1 --pidfile $PIDFILE \
- --exec $DAEMON
- ;;
- status)
- echo -n "$DESC is "
- if ! is_running
- then
- echo -n "not "
- fi
- echo "running."
-
- ;;
- restart)
- echo -n "Restarting $DESC: "
- start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
- --exec $DAEMON
- rm -f $PIDFILE
- sleep 1
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
- > /dev/null
- echo $(pidof lisa) > $PIDFILE
- echo "$NAME."
- ;;
- cond-restart)
- if ! is_running
- then
- echo "$DESC is not running. Not doing anything"
- exit 0
- fi
- echo -n "Restarting $DESC: "
- start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
- --exec $DAEMON
- rm -f $PIDFILE
- sleep 1
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
- > /dev/null
- echo $(pidof lisa) > $PIDFILE
- echo "$NAME."
- ;;
- *)
- N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|cond-restart|status|reload|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0