pmjdebruijn | hi again | 10:02 |
---|---|---|
pmjdebruijn | I'm trying to upstartify dhcp3-server which basically works | 10:02 |
pmjdebruijn | but I'm trying to integrate the config check stuff too | 10:03 |
pmjdebruijn | I have two issues | 10:03 |
pmjdebruijn | http://pastebin.com/NxYytQJp | 10:04 |
pmjdebruijn | I don't get any output, so I don't know if the script part is run properly | 10:04 |
pmjdebruijn | if certainly doesn't prevent reload/restart | 10:04 |
pmjdebruijn | which sort is the point | 10:04 |
pmjdebruijn | if the config check fails, I'd like the upstart script to _not_ reload or restart dhcp3 | 10:04 |
pmjdebruijn | please don't mind the start on part (which is intentional) | 10:05 |
pmjdebruijn | any idea? | 10:10 |
wraiden | as far as i can tell, there is no way to do that inside the job.conf as we have no pre-reload post-reload implemented... | 10:44 |
wraiden | the [initctl] reload command will take the pid of the process and sends a SIGHUP to it... | 10:45 |
pmjdebruijn | ok, that's not a huge problem | 11:46 |
pmjdebruijn | but it would have been nice | 11:46 |
pmjdebruijn | dhcp3-server old school init script has an excellent check before loading any new configuration | 11:46 |
pmjdebruijn | to prevent downtime due to misconfiguration | 11:46 |
wraiden | jepp, my httpd and bind sysv-init shell scripts had also such checks... | 12:55 |
pmjdebruijn | yeah it's pretty nifty to have | 12:56 |
pmjdebruijn | basically only the "stop" action should work if the check fails | 12:56 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!