Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In an upstart configuration how do I define what command should be used to shutdown a server. Lets say I have daemon that has two seperate processes.

  • startup.sh - to start the server
  • shutdown.sh - to shut down the server

Suppose I have an upstart file that looks like this.

description "Some Example Service"
author "Me"

start on runlevel [2345]
stop on runlevel [016]
respawn

exec satrtup.sh 

How do I tell upstart that it should called shutdown.sh when shutting down the server? How does upstart normally expect to shut down a daemon?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.