diff options
-rw-r--r-- | security/drweb-sendmail/files/01.drweb-smf.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/drweb-sendmail/files/01.drweb-smf.sh b/security/drweb-sendmail/files/01.drweb-smf.sh new file mode 100644 index 000000000000..fec4c3a43ae8 --- /dev/null +++ b/security/drweb-sendmail/files/01.drweb-smf.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +case "$1" in +start) + if [ -x %INSTALL%/drweb-smf ]; then + killall drweb-smf >/dev/null 2>& 1; + %INSTALL%/drweb-smf --conf=/usr/local/etc/drweb-sendmail/drweb_smf.conf && \ + echo ' Starting drweb-smf'; + fi + ;; +stop) + killall drweb-smf >/dev/null 2>& 1; + echo ' Stop drweb-smf'; + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |