Take the 2-minute tour ×
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.

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 at 5:27

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

    
How does myjob.conf look like? –  Cristian Ciupitu Apr 30 at 5:26

1 Answer 1

up vote 1 down vote accepted

Remove the respawn line from myjob.conf.

share|improve this answer

Your Answer

 
discard

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.