]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
implement autossh reload
authorAntoine Beaupré <anarcat@koumbit.org>
Thu, 18 Jun 2015 20:22:08 +0000 (16:22 -0400)
committerAntoine Beaupré <anarcat@koumbit.org>
Thu, 18 Jun 2015 21:15:28 +0000 (17:15 -0400)
not sure what this was for, but it was in the original implementation

files/autossh.init.d

index 95670d372dc189bc8a19ad1631367a9083d20421..bb1119ee69707833fdeb034a27d4f40dc96e397a 100644 (file)
@@ -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