supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Getting a process to run as root
@ 2012-04-25 10:20 Peter Hickman
  2012-04-25 13:07 ` Wayne Marshall
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Hickman @ 2012-04-25 10:20 UTC (permalink / raw)
  To: supervision

I have an application that scans log files that is written in Ruby. It
is installed as the user log_watcher but needs to be run as root so
that it can have the rights to read the various log files that it
needs. Essentially the service/log_watcher/run file comes down to
"sudo ruby log_watcher.rb", the log_watcher user has passwordless sudo
rights.

We have runit / supervise installed but when we try and start the
application it complains about supervise/ok or supervise/lock being
unavailable which means that the process is not being restarted after
a reboot.

How do I get to run the process as root from the log_watcher user.
I've tried various things I've seen in the wiki and got back from
googling but nothing seems to work. Or perhaps there is another way
around this?


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-28  1:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25 10:20 Getting a process to run as root Peter Hickman
2012-04-25 13:07 ` Wayne Marshall
2012-04-26 15:11   ` Peter Hickman
2012-04-26 18:49     ` Wayne Marshall
2012-04-27  9:18       ` Peter Hickman
2012-04-27 11:13         ` Wayne Marshall
2012-04-27 13:44           ` Peter Hickman
2012-04-27 14:42             ` Peter Hickman
2012-04-27 14:56               ` Charlie Brady
2012-04-28  1:17                 ` Laurent Bercot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).