[01:22] if I have an upstart script, and i want it to stop respawn when i do a initctl stop what should I change? [01:23] it correctly on failing restarts itself, but when running a stop, it still restarts itself [01:23] is this something I should use a PID for? [01:28] it should not restart when you use stop [01:28] maybe it crashes when you try to stop it or something? [01:29] or something else restarts it? [01:31] give me a few removing the respawn value to see if it works without respawn in the file [01:32] when i remove respawn, it stops as it should [01:33] and stays stopped, so it's definitely having respawn in the service [01:33] that causes it [01:34] do you have a pre-stop script or something like that? [01:34] yea [01:35] i do have a pre-stop script which does cleanup if you "stop" the service [01:35] most likely something goes wrong in there [01:36] something that returns a non-zero exit status [01:36] at least, that's my guess [01:39] ah ok [01:39] remember all scripts in upstart are run with "sh -e" [01:49] nothing exiting with non-zero [01:52] are you sure it's okay to clean up _before_ stopping the service? [01:52] some services might crash if you try that (clean up in post-stop script then) [01:53] omg lol dur, that is probably it [01:54] "cleaning up" is more or less what post-stop is for usually :) [01:55] typo on my part [01:55] while pre-stop is often used to stop the service process if that requires a special command [01:56] or sometimes to cancel the stop [02:05] yea, it's a post-stop style script [02:06] it would most definitely break it if running [02:51] JanC, thanks for your help man === JanC is now known as Guest38161 === JanC_ is now known as JanC [23:46] how would i create a list of vars that are used throughout my upstart file?