Commit 66246074 authored by Niels Möller's avatar Niels Möller

* contrib/lshd.debian.init: Updated file names for host key. Use

SIGHUP when stopping daemon.

Rev: contrib/lshd.debian.init:1.4
parent c0d3cd10
......@@ -24,8 +24,8 @@ PORT=22
set -e
if [ ! -x $DAEMON \
-o ! -f /etc/lsh_host_key \
-o ! -f /etc/lsh_host_key.pub \
-o ! -f /etc/lshd/host-key \
-o ! -f /etc/lshd/host-key.pub \
-o ! -f /var/spool/lsh/yarrow-seed-file ]
then
echo "lshd not installed properly" >&2
......@@ -42,7 +42,7 @@ case "$1" in
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE \
--exec $DAEMON
echo "$NAME."
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment