summaryrefslogtreecommitdiffstats
path: root/mail/sid-milter
diff options
context:
space:
mode:
Diffstat (limited to 'mail/sid-milter')
-rw-r--r--mail/sid-milter/files/milter-sid.sh9
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
OpenPOWER on IntegriCloud