diff options
Diffstat (limited to 'mail/sqwebmail/files/sqwebmail-authdaemond.sh')
-rw-r--r-- | mail/sqwebmail/files/sqwebmail-authdaemond.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/sqwebmail/files/sqwebmail-authdaemond.sh b/mail/sqwebmail/files/sqwebmail-authdaemond.sh new file mode 100644 index 000000000000..cd05b44900b1 --- /dev/null +++ b/mail/sqwebmail/files/sqwebmail-authdaemond.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -r ${PREFIX}/share/sqwebmail/authdaemonrc ] && ${PREFIX}/libexec/sqwebmail/authlib/authdaemond start > /dev/null && echo -n ' authdaemond' + ;; +stop) + ${PREFIX}/libexec/sqwebmail/authlib/authdaemond stop > /dev/null && echo -n ' authdaemond' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 + |