Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
blocksshd
> blocksshd-redhat-init.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File blocksshd-redhat-init.diff of Package blocksshd
--- blocksshd-1.3/init/blocksshd.orig 2007-08-08 15:25:42.000000000 +0200 +++ blocksshd-1.3/init/blocksshd 2011-01-21 22:41:56.998781643 +0100 @@ -19,6 +19,12 @@ [ -f /etc/blocksshd.conf ] || exit 0 +if [ -f /etc/sysconfig/blocksshd ] ; then + . /etc/sysconfig/blocksshd +else + exit 0 +fi + DAEMON=blocksshd start() { @@ -27,6 +33,7 @@ RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/blocksshd + $STARTCMD return $RETVAL } @@ -37,6 +44,7 @@ RETVAL=$? echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/blocksshd + $STOPCMD } # See how we were called. @@ -47,7 +55,7 @@ stop) stop ;; - reload) + reload|restart) $0 stop $0 start exit $? @@ -57,7 +65,7 @@ echo ;; *) - echo "Usage: blocksshd {start|stop|reloadi|status}" + echo "Usage: blocksshd {start|stop|reload|restart|status}" exit 1 esac