This is definitely the intended behavior, the purpose of the pre-stop script is to allow the job to:
- delay the stop - cancel the stop - send its own clean shutdown command before the TERM signal It's also not inconsistent if you think about it. The starting event happens before the pre-start script, so since stop should be a mirror of start, it's mirrorly consistent that pre-stop happens before stopping. You probably want to use the post-stop script for what you're trying to do, rather than pre-stop ** Changed in: upstart Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/715101 Title: pre-start script is executed before processing the event "stopping ..." -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs