diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-09-07 23:42:14 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-09-07 23:42:14 +0000 |
commit | 9d41f399e3057fbfd0e8e2bd2c96f23fede99885 (patch) | |
tree | 298cb1f61ee55601731b9614d80f328e75266eff | |
parent | [Maintainer update] multimedia/xmms to 1.2.8 (diff) |
Fix rc.d script sample
Notes
Notes:
svn path=/head/; revision=88698
-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 |