RUNIT - created first service directory, "sv start testrun" does not work

Posted by Veseliq on Server Fault See other posts from Server Fault or by Veseliq
Published on 2012-06-19T14:32:59Z Indexed on 2012/06/19 15:18 UTC
Read the original article Hit count: 146

Filed under:

I'm pretty new to runit. I installed it on a Ubuntu host.

What I did:

1) created a dir testrun in /etc/sv

2) created a script run in /etc/sv/testrun/run, the script content:

#! /bin/bash
exec /root/FP/annotate-output python /root/FP/test.py | logger -t svtest

3) If I call directly /etc/sv/testrun/run it executes successfully

4) I run sv start testrun (or sv run testrun, sv restart testrun), all of them end up with the same error msg:

fail: sv: unable to change to service directory: file does not exist

Any ideas what am I doing wrong? I'm new to runit and base all my actions on the information found here: http://smarden.org/runit/

© Server Fault or respective owner

Related posts about runit