diff options
Diffstat (limited to 'openwrt/rhctl/files/heartbeatclient.init')
-rwxr-xr-x | openwrt/rhctl/files/heartbeatclient.init | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openwrt/rhctl/files/heartbeatclient.init b/openwrt/rhctl/files/heartbeatclient.init index 97f59ce..b201c5e 100755 --- a/openwrt/rhctl/files/heartbeatclient.init +++ b/openwrt/rhctl/files/heartbeatclient.init @@ -54,3 +54,17 @@ stop() { fi echo "." } + +reset() { + echo -n "$DESC: Restarting timeout" + if [ -f $PIDFILE ]; then + kill -HUP `cat $PIDFILE` > /dev/null 2>&1 + echo -n " (Ok)" + else + echo -n " (not running)" + fi + echo "." +} + +EXTRA_COMMANDS=reset +EXTRA_HELP=" reset Restart timeout and switch back to master" |