diff options
author | lioux <lioux@FreeBSD.org> | 2003-09-07 23:42:14 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-09-07 23:42:14 +0000 |
commit | 8d516e81529e0cf2cda36419100bdc0c472638e6 (patch) | |
tree | 1a625ed65084b0e30a863a144d676f45f7ccf3b8 /security | |
parent | 6697bf305a59fd1786bf3ccb810061ccdc93beff (diff) | |
download | FreeBSD-ports-8d516e81529e0cf2cda36419100bdc0c472638e6.zip FreeBSD-ports-8d516e81529e0cf2cda36419100bdc0c472638e6.tar.gz |
Fix rc.d script sample
Diffstat (limited to 'security')
-rw-r--r-- | security/pam_smb/files/pam_smbd.sh.sample | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/security/pam_smb/files/pam_smbd.sh.sample b/security/pam_smb/files/pam_smbd.sh.sample index f40ebe1..fc7eaea 100644 --- a/security/pam_smb/files/pam_smbd.sh.sample +++ b/security/pam_smb/files/pam_smbd.sh.sample @@ -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 |