freebsd-ports/security/pam_smb/files/pam_smbd.sh.sample
Mario Sergio Fujikawa Ferreira 9d41f399e3 Fix rc.d script sample
2003-09-07 23:42:14 +00:00

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