summaryrefslogtreecommitdiff
path: root/security/pam_smb/files/pam_smbd.sh.sample
blob: fc7eaea8afbc48f6e3571c01db0f4119ea1bb55e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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