From: Erwan V. <er...@ma...> - 2003-11-03 10:37:38
|
I suggest the following patch for the 5.23 release --- smartd.initd.old 2003-11-03 11:33:52.000000000 +0100 +++ smartd.initd 2003-11-03 11:34:38.000000000 +0100 @@ -38,6 +38,7 @@ =20 # Source function library . /etc/rc.d/init.d/functions +RETVAL=3D0 =20 case "$1" in start) @@ -57,14 +58,12 @@ killproc /usr/sbin/smartd -HUP RETVAL=3D$? echo - exit $RETVAL ;; report) echo -n $"Checking devices now: " killproc /usr/sbin/smartd -USR1 RETVAL=3D$? echo - exit $RETVAL ;; restart) $0 stop @@ -75,10 +74,10 @@ ;; *) echo "Usage: smartd {start|stop|reload|report|restart|status}" - exit 1 + RETVAL=3D1 esac =20 - exit 0 + exit $RETVAL =20 # Slackware elif [ -f /etc/slackware-release ] ; then --=20 Erwan Velu Linux Cluster Distribution Project Manager MandrakeSoft 43 rue d'aboukir 75002 Paris Phone Number : +33 (0) 1 40 41 17 94 Fax Number : +33 (0) 1 40 41 92 00 Web site : http://www.mandrakesoft.com OpenPGP key : http://www.mandrakesecure.net/cks/=20 |