diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2005-01-08 10:25:05 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2005-01-08 10:25:05 +0000 |
commit | cb034e3273dfc0a47a1e7de16a2ba0d55e3b690f (patch) | |
tree | 009a42b7df5586f0f1b618e8a53441ff60a7b20a /mail/courier-authlib-vchkpw/files | |
parent | Chase shlib version in qdbm (diff) |
upadate to courier-authlib 0.52, courier-imap 4.0.1 and sqwebmail 5.0.0
Special thanks for testing and sugestions to: Brian Candler <B.Candler@pobox.com>
Notes
Notes:
svn path=/head/; revision=125759
Diffstat (limited to 'mail/courier-authlib-vchkpw/files')
-rw-r--r-- | mail/courier-authlib-vchkpw/files/courier-authdaemond.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/courier-authlib-vchkpw/files/courier-authdaemond.sh b/mail/courier-authlib-vchkpw/files/courier-authdaemond.sh index b4af4c0b40fd..ef48f1629b24 100644 --- a/mail/courier-authlib-vchkpw/files/courier-authdaemond.sh +++ b/mail/courier-authlib-vchkpw/files/courier-authdaemond.sh @@ -24,6 +24,8 @@ command="%%PREFIX%%/sbin/authdaemond" start_cmd="authdaemond_cmd start" stop_cmd="authdaemond_cmd stop" restart_cmd="authdaemond_cmd stop && authdaemond_cmd start" +pidfile="%%PREFIX%%/var/spool/authdaemon/pid" +procname="%%PREFIX%%/sbin/courierlogger" load_rc_config $name @@ -36,6 +38,12 @@ authdaemond_cmd () { stop) echo "Stopping ${name}." ${command} stop + if [ $? -eq 0 ] ; then + [ -f "$pidfile" ] && rm -f "$pidfile" + [ -f "$pidfile".lock ] && rm -f "$pidfile".lock + [ -S %%PREFIX%%/var/spool/authdaemon/socket ] && rm -f %%PREFIX%%/var/spool/authdaemon/socket + return 0 + fi ;; esac } |