How 2 Add a job to be run as sudo sv start job_name
- mkdir /etc/sv/job_name/
- vim /etc/sv/job_name/run
- (add command to run job)
- ln -s /etc/sv/job_name /etc/init.d/job_name
- ln -s /etc/sv/job_name /etc/service/job_name
http://serverfault.com/questions/400158/runit-created-first-service-directory-sv-start-testrun-does-not-work
No comments:
Post a Comment