summaryrefslogblamecommitdiff
path: root/security/pam_smb/files/pam_smbd.sh.sample
blob: fc7eaea8afbc48f6e3571c01db0f4119ea1bb55e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                            





                                                  
  
#!/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