ctl-hlfsd.in (82794) | ctl-hlfsd.in (119679) |
---|---|
1#!/bin/sh 2# control starting, stopping, or restarting hlfsd. 3# usage: ctl-hlfsd [start | stop | restart] 4# 5# Package: am-utils-6.0 6# Author: Erez Zadok <ezk@cs.columbia.edu> 7# 8# chkconfig: - 72 28 --- 72 unchanged lines hidden (view full) --- 81'start') 82 # 83 # Start the hlfsd mail redirector service 84 # 85 if [ -x @sbindir@/hlfsd -a -h $maildir ] 86 then 87 echo @sbindir@/hlfsd ${PASSWD_FILE} -a $altmaildir -x all -D fork -l $logdir/hlfsd /mail/home .mailspool 88 @sbindir@/hlfsd ${PASSWD_FILE} -a $altmaildir -x all -D fork -l $logdir/hlfsd /mail/home .mailspool & | 1#!/bin/sh 2# control starting, stopping, or restarting hlfsd. 3# usage: ctl-hlfsd [start | stop | restart] 4# 5# Package: am-utils-6.0 6# Author: Erez Zadok <ezk@cs.columbia.edu> 7# 8# chkconfig: - 72 28 --- 72 unchanged lines hidden (view full) --- 81'start') 82 # 83 # Start the hlfsd mail redirector service 84 # 85 if [ -x @sbindir@/hlfsd -a -h $maildir ] 86 then 87 echo @sbindir@/hlfsd ${PASSWD_FILE} -a $altmaildir -x all -D fork -l $logdir/hlfsd /mail/home .mailspool 88 @sbindir@/hlfsd ${PASSWD_FILE} -a $altmaildir -x all -D fork -l $logdir/hlfsd /mail/home .mailspool & |
89 test -x /var/lock/subsys && touch /var/lock/subsys/hlfsd |
|
89 fi 90 ;; 91 92'stop') 93 # prepend space to program name to ensure only amd process dies 94 killproc " hlfsd" | 90 fi 91 ;; 92 93'stop') 94 # prepend space to program name to ensure only amd process dies 95 killproc " hlfsd" |
96 test -f /var/lock/subsys/hlfsd && rm -f /var/lock/subsys/hlfsd |
|
95 ;; 96 97'restart') 98 # kill hlfsd, wait for it to die, then restart 99 echo "killing hlfsd..." 100 ctl-hlfsd stop 101 echo "Waiting for 10 seconds..." 102 sleep 10 # hope that would be enough 103 echo "Restarting hlfsd..." 104 ctl-hlfsd start 105 ;; 106 107*) 108 echo "Usage: @sbindir@/ctl-hlfsd [ start | stop | restart ]" 109 ;; 110esac | 97 ;; 98 99'restart') 100 # kill hlfsd, wait for it to die, then restart 101 echo "killing hlfsd..." 102 ctl-hlfsd stop 103 echo "Waiting for 10 seconds..." 104 sleep 10 # hope that would be enough 105 echo "Restarting hlfsd..." 106 ctl-hlfsd start 107 ;; 108 109*) 110 echo "Usage: @sbindir@/ctl-hlfsd [ start | stop | restart ]" 111 ;; 112esac |