diff options
author | ankry | 2003-05-27 21:54:10 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | d604563018448bc5e0d2a446872efe0e9c28607e (patch) | |
tree | 74766e42425e063fb77221500bd8eaf6d347aeb5 | |
parent | 8f1777db9d41ab208459e3b467dbcea32afc6340 (diff) | |
download | smartmontools-d604563018448bc5e0d2a446872efe0e9c28607e.zip smartmontools-d604563018448bc5e0d2a446872efe0e9c28607e.tar.gz |
- LSB conformance
Changed files:
smartmontools.init -> 1.3
-rw-r--r-- | smartmontools.init | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/smartmontools.init b/smartmontools.init index e15e8f9..c356c41 100644 --- a/smartmontools.init +++ b/smartmontools.init @@ -15,7 +15,7 @@ # Get service config - may override defaults [ -f /etc/sysconfig/smartd ] && . /etc/sysconfig/smartd - +RETVAL=0 # See how we were called. case "$1" in start) @@ -29,7 +29,6 @@ case "$1" in else # show "%s service is already running." smartd msg_already_running smartd - exit 1 fi ;; stop) @@ -38,17 +37,16 @@ case "$1" in # show "Stopping %s service" smartd msg_stopping smartd killproc smartd - RETVAL=$? rm -f /var/lock/subsys/smartd else # show "%s service is not running." smartd msg_not_running smartd - exit 1 fi ;; restart) $0 stop $0 start + exit $? ;; reload|force-reload) if [ -f /var/lock/subsys/smartd ]; then @@ -58,18 +56,18 @@ case "$1" in RETVAL=$? else # show "%s service is not running." smartd - msg_not_running smartd - RETVAL=1 + msg_not_running smartd >&2 + exit 7 fi ;; status) status smartd - RETVAL=$? + exit $? ;; *) # show "Usage: %s {start|stop|restart|reload|force-reload|status}" msg_usage "$0 {start|stop|restart|reload|force-reload|status}" - exit 1 + exit 3 esac exit $RETVAL |