19 lines
320 B
Bash
19 lines
320 B
Bash
#!/bin/sh
|
|
pidfiledir=/var/run
|
|
pamsmbd=%%PREFIX%%/sbin/pamsmbd
|
|
|
|
# start
|
|
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
|
|
echo -n ' pamsmbd'
|
|
$pamsmbd
|
|
fi
|
|
|
|
# stop
|
|
if [ "x$1" = "xstop" ]; then
|
|
if [ -f "$pidfiledir/pamsmbd.pid" ]; then
|
|
kill `cat $pidfiledir/pamsmbd.pid`
|
|
else
|
|
killall 'pamsmbd'
|
|
fi
|
|
fi
|