diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-11-24 11:07:35 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-11-24 11:07:35 -0300 |
commit | 8d32e471d53634b308adf93007922a6ccbd2b830 (patch) | |
tree | 606fdcd5508936ffdfc7cf510a16b7324c2792e2 /community-staging/courier-imap/pop3d.rc.d | |
parent | 4c9d76f582ae64854e30113e7f7dc621af3db820 (diff) | |
parent | 1e1e4927b05d9b242bfe83794e3a98ab2c8f79ef (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/augeas/PKGBUILD
community/chmsee/PKGBUILD
community/cupsddk/PKGBUILD
community/optipng/PKGBUILD
community/pcb/PKGBUILD
community/taglib-rcc/PKGBUILD
community/wmctrl/PKGBUILD
extra/c-ares/PKGBUILD
multilib/lib32-freetype2/PKGBUILD
Diffstat (limited to 'community-staging/courier-imap/pop3d.rc.d')
-rw-r--r-- | community-staging/courier-imap/pop3d.rc.d | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community-staging/courier-imap/pop3d.rc.d b/community-staging/courier-imap/pop3d.rc.d new file mode 100644 index 000000000..7b73c5a7a --- /dev/null +++ b/community-staging/courier-imap/pop3d.rc.d @@ -0,0 +1,47 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + + [ -d /var/run/courier ] || mkdir -p /var/run/courier + chown courier:courier /var/run/courier + + if ck_daemon authdaemond; then + echo "ERROR: authdaemond is not running" + stat_fail + exit 1 + fi + + stat_busy "Starting Courier pop3d" + /usr/lib/courier-imap/pop3d.rc start + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon pop3d + stat_done + fi + ;; + stop) + stat_busy "Stopping Courier pop3d" + /usr/lib/courier-imap/pop3d.rc stop > /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon pop3d + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 +~ +~ |