aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-06-18 16:22:08 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-06-18 17:15:28 -0400
commit50685a8bc739d28ab1df830c707d1091a94c08bb (patch)
tree3f2890ab7f70ede2d53bcdb328a439b5ee76d0b6
parentf794a976ca60d2dece62f778e56d1f7c0427dcc1 (diff)
downloadpuppet-sshd-50685a8bc739d28ab1df830c707d1091a94c08bb.tar.gz
puppet-sshd-50685a8bc739d28ab1df830c707d1091a94c08bb.tar.bz2
implement autossh reload
not sure what this was for, but it was in the original implementation
-rw-r--r--files/autossh.init.d16
1 files changed, 6 insertions, 10 deletions
diff --git a/files/autossh.init.d b/files/autossh.init.d
index 95670d3..bb1119e 100644
--- a/files/autossh.init.d
+++ b/files/autossh.init.d
@@ -124,16 +124,12 @@ case "$1" in
status)
status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
+ reload|force-reload)
+ log_daemon_msg "Reloading $DESC" "$NAME"
+ do_reload
+ log_end_msg $?
+ ;;
+ restart)
#
# If the "reload" option is implemented then remove the
# 'force-reload' alias