OpenVZ Forum


Home » General » Support » Stopping puppet on hn stops it in all VE
Re: Stopping puppet on hn stops it in all VE [message #14749 is a reply to message #14748] Mon, 09 July 2007 13:59 Go to previous messageGo to previous message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
I don't see how the script is different from crond's:

(stop parts only)

Puppet:
stop() {
        echo -n $"Stopping puppet: "
        killproc $puppetd
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}


Crond:
stop() {
        echo -n $"Stopping $prog: "
        if [ ! -e /var/lock/subsys/crond ]; then
            echo -n $"cannot stop crond: crond is not running."
            failure $"cannot stop crond: crond is not running."
            echo
            return 1;
        fi
        killproc crond
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/crond;
        return $RETVAL
}


I'd gladly submit this to the puppet's developpers, but I can't see how the behaviour is different.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VE Kernel Version
Next Topic: VZDUMP Not Working
Goto Forum:
  


Current Time: Sat Aug 31 21:23:49 GMT 2024

Total time taken to generate the page: 0.10087 seconds