Skip to content

Commit

Permalink
sshguard: remove pid file on stop
Browse files Browse the repository at this point in the history
Add --remove-pidfile option to start-stop-daemon
  • Loading branch information
alllexx88 committed Aug 25, 2017
1 parent 59e7f64 commit 138790e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion make/sshguard.mk
Expand Up @@ -36,7 +36,7 @@ SSHGUARD_CONFLICTS=
#
# SSHGUARD_IPK_VERSION should be incremented when the ipk changes.
#
SSHGUARD_IPK_VERSION=2
SSHGUARD_IPK_VERSION=3

#
# SSHGUARD_CONFFILES should be a list of user-editable files
Expand Down
2 changes: 1 addition & 1 deletion sources/sshguard/rc.sshguard
Expand Up @@ -59,7 +59,7 @@ case "$rc" in
stop)
echo "Stopping brute-force attacks protector: $NAME"
do_disable_firewall
${START_STOP_DAEMON} --stop -s KILL --pidfile $PIDFILE
${START_STOP_DAEMON} --stop -s KILL --pidfile $PIDFILE --remove-pidfile
;;
restart)
"$0" stop
Expand Down

0 comments on commit 138790e

Please sign in to comment.