Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a run sript under ress directory:

#!/bin/sh

exec python gmail_new15.py

And when I try to execute svc I get:

~# svc -du ress/
svc: warning: unable to control ress/: file does not exist

My goal is to control if the python script crashes and restart it.

~# ls ress/
run

~# cat ress/run 
#!/bin/sh

exec python gmail_new15.py
share|improve this question

closed as not a real question by Tom O'Connor, Magellan, mdpc, Brent Pabst, rnxrx Oct 27 '12 at 5:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Gonna need more to go on than that.. Give me a ls -alh of the directory containing "ress" and the "ress" directory itself. –  Tom O'Connor Mar 21 '12 at 22:06
    
I've edited the question @TomO'Connor thanks –  donald Mar 21 '12 at 22:46
add comment

1 Answer

Have you started supervise ? The documentation for svc states fairly explicitly that it "controls services monitored by supervise".

And looking at svc.c, that particular error message is raised when it cannot find/open the file supervise/control, wich is automatically created (along with the supervise directory) by supervise if it cannot find it.

See documentation supervise or svscan if you want to start supervise around more than one service.

share|improve this answer
add comment

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