summaryrefslogtreecommitdiff
path: root/debian/echolot.init
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-06-06 10:04:47 +0000
committerPeter Palfrader <peter@palfrader.org>2003-06-06 10:04:47 +0000
commitee38573c402333971e7cf873b2fbcd1865206505 (patch)
treebed93e7ffc4bf2108ced79ccfda0267c65296546 /debian/echolot.init
parent62c859444ceb4401f6e73c48f4d6035f26646830 (diff)
Remove random command invocation via pingctr/init script. People should just call pingd directly
Diffstat (limited to 'debian/echolot.init')
-rwxr-xr-xdebian/echolot.init24
1 files changed, 2 insertions, 22 deletions
diff --git a/debian/echolot.init b/debian/echolot.init
index 3916ddc..616aa2b 100755
--- a/debian/echolot.init
+++ b/debian/echolot.init
@@ -44,9 +44,9 @@ wait_for_deaddaemon () {
sleep 2
echo -n "."
done
- rm -f /var/run/echolot/pingd.pid
+ rm -f $PIDFILE
else
- rm -f /var/run/echolot/pingd.pid
+ rm -f $PIDFILE
fi
fi
}
@@ -134,26 +134,6 @@ reload|force-reload|restart)
wait_for_deaddaemon $PID
$0 start
;;
-process|add|delete|set|setremailercaps|deleteremailercaps|getkeyconf|sendpings|sendchainpings|buildstats|buildkeys|buildthesaurus|buildfromlines|dumpconf|summary)
- # Check for right User
- SU=""
- if [ "$CHECKUID" -gt "0" ]; then
- CUID=`id -u`
- CUIDNAME=`id -nu`
- if [ "$CUIDNAME" = "$USER" ]; then
- SU=""
- elif [ "$CUID" = "0" ]; then
- SU="su $USER -c"
- else
- echo "You are neither $USER nor root. Aborting." >&2
- exit 1;
- fi
- fi
-
- echo "Running $DESC: $NAME $1..."
- $SU $DAEMON "$@"
- echo "done."
- ;;
*)
echo "Usage: $0 (start|stop|reload|force-reload|restart)" >&2
echo " $0 <COMMAND> [parameters]" >&2