diff options
author | lioux <lioux@FreeBSD.org> | 2003-09-08 07:42:14 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-09-08 07:42:14 +0800 |
commit | 8d516e81529e0cf2cda36419100bdc0c472638e6 (patch) | |
tree | 1a625ed65084b0e30a863a144d676f45f7ccf3b8 /security/pam_smb | |
parent | 6697bf305a59fd1786bf3ccb810061ccdc93beff (diff) | |
download | freebsd-ports-gnome-8d516e81529e0cf2cda36419100bdc0c472638e6.tar.gz freebsd-ports-gnome-8d516e81529e0cf2cda36419100bdc0c472638e6.tar.zst freebsd-ports-gnome-8d516e81529e0cf2cda36419100bdc0c472638e6.zip |
Fix rc.d script sample
Diffstat (limited to 'security/pam_smb')
-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 f40ebe13d3b2..fc7eaea8afbc 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 |