4 # Required-Start: $syslog $network
5 # Required-Stop: $syslog $network
6 # Default-Start: 2 3 4 5
8 # Short-Description: Start the pfixtools daemons
11 PATH=/sbin:/bin:/usr/sbin:/usr/bin
13 . /lib/lsb/init-functions
14 test -r /etc/default/pfixtools && . /etc/default/pfixtools
16 mkdir -p /var/run/pfixtools &>/dev/null
20 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|1) true;;
26 log_daemon_msg "Starting pidxtools"
27 if isyes "$SRSD_ENABLE" && test -x /usr/sbin/pfix-srsd; then
28 start_daemon -p /var/run/pfixtools/srsd.pid \
29 /usr/sbin/pfix-srsd $SRSD_OPTIONS \
30 -p /var/run/pfixtools/srsd.pid \
31 "$SRSD_DOMAIN" "$SRSD_SECRETS"
32 log_progress_msg "pidx-srsd"
38 log_daemon_msg "Stopping pidxtools"
39 if isyes "$SRSD_ENABLE"; then
40 killproc -p /var/run/pfixtools/srsd.pid pfix-srsd
41 log_progress_msg "pidx-srsd"
58 echo "Usage: $0 {start|stop|restart|force-reload}" >&2