Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 43292

Re: Rebooted server and now postgrey won't start

$
0
0

Ok, I still don't know why this was all screwed up but I was able to make /etc/init.d/cbpolicyd run by modifying it as such:

(Modifications marked with "##<------")

#!/bin/bash
#
# chkconfig: - 75 25
# description: Postfix Policy Daemon
# processname: httpd
# config: /etc/policyd/cluebringer.conf
# pidfile: /var/run/cbpolicyd.pid
# processname: cbpolicyd

# source function library
#. /etc/init.d/functions
. /etc/sysconfig/network/scripts/functions  ##<--------------------- changed this path
# Get config.
. /etc/sysconfig/network/config ##<---------------------Changed this path

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0


RETVAL=0


start() {
        echo -n $"Starting cbpolicyd: "
        ## daemon /usr/sbin/cbpolicyd --config /etc/policyd/cluebringer.conf
        /usr/sbin/cbpolicyd --config=/etc/policyd/cluebringer.conf  ##<-------------- removed "daemon" and added "=" after --config
        RETVAL=$?
        echo
        # [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cbpolicyd  ##JSM 11/21/2013
        [ $RETVAL -eq 0 ] && touch /var/run/cbpolicyd/cbpolicyd ##<---------------------Added
        return $RETVAL
}


stop() {
        echo -n $"Shutting down cbpolicyd: "
        killproc cbpolicyd
        RETVAL=$?
        echo
        #[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cbpolicyd ##JSM 11/21/2013
        [ $RETVAL -eq 0 ] && rm -f /var/run/cbpolicyd/cbpolicyd   ##<---------------------Added
}

restart() {
        stop
        start
}


case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  condrestart)
        #if [ -f /var/lock/subsys/cbpolicyd ]; then ##JSM 11/21/2013   
        if [ -f /var/run/cbpolicyd/cbpolicyd ]; then   ##<---------------------Added
                restart
        fi
        ;;
  status)
        status cbpolicyd
        RETVAL=$?
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

###################################################

"/var/run/cbpolicyd/"  was created and chowned with cluebringer:root permissions set to 770


Viewing all articles
Browse latest Browse all 43292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>