Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an expect script named ex.sh that interacts with another script 'vpn.sh'. the vpn.sh script runs a vpn client so I need Upstart to automatically start it when my server reboots.

Currently I have an upstart job 'myjob.conf' on /etc/init/myjob.conf and what it does is just run ex.sh. The problem is that when I see the logs for /var/log/upstart/ex I see that, obviously, ex.sh is being run every minute because the script finish running and starts again, but I don't need this becaus I only need to launch the vpn process once.

How can I fix this ?

share|improve this question

migrated from serverfault.com Apr 30 '14 at 5:27

This question came from our site for system and network administrators.

How does myjob.conf look like? – Cristian Ciupitu Apr 30 '14 at 5:26
up vote 1 down vote accepted

Remove the respawn line from myjob.conf.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.