diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-05-22 21:37:49 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-05-22 21:37:49 +0000 |
commit | 60344ae658b2f31b24b3492fadee03798cc5b196 (patch) | |
tree | 813bff734952b9d06dfef6ef42345caa52170e44 /mail/sid-milter | |
parent | 5feaffe0998800bb1b2abf753f18ea291c3f8de6 (diff) | |
download | FreeBSD-ports-60344ae658b2f31b24b3492fadee03798cc5b196.zip FreeBSD-ports-60344ae658b2f31b24b3492fadee03798cc5b196.tar.gz |
- add restart target
- fix wait subtarget
Suggested by: ache
Diffstat (limited to 'mail/sid-milter')
-rw-r--r-- | mail/sid-milter/files/milter-sid.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/sid-milter/files/milter-sid.sh b/mail/sid-milter/files/milter-sid.sh index a644fca..b584c96 100644 --- a/mail/sid-milter/files/milter-sid.sh +++ b/mail/sid-milter/files/milter-sid.sh @@ -27,7 +27,7 @@ stop) rm -f /var/run/sid-filter.pid ;; wait) - while ps -ax -o pid,command | fgrep sid-filter + while ps -ax -o command | grep ^%%PREFIX%%/libexec/sid-filter do echo "please wait" sleep 1 @@ -41,8 +41,13 @@ reload) echo " sid-filter: not running" 2>&1 fi ;; +restart) + $0 stop + sleep 1 + $0 start + ;; *) - echo "Usage: ${0##*/}: { start | stop | reload }" >&2 + echo "Usage: ${0##*/}: { start | stop | reload | restart }" >&2 exit 64 ;; esac |