Fix rc.d script sample

This commit is contained in:
Mario Sergio Fujikawa Ferreira
2003-09-07 23:42:14 +00:00
parent 363f16721b
commit 9d41f399e3

View File

@@ -9,6 +9,10 @@ if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
fi
# stop
elif [ "x$1" = "xstop" ]; then
kill `cat $pidfiledir/pamsmbd.pid`
if [ "x$1" = "xstop" ]; then
if [ -f "$pidfiledir/pamsmbd.pid" ]; then
kill `cat $pidfiledir/pamsmbd.pid`
else
killall 'pamsmbd'
fi
fi