Re: user-specific services not working as documented?

From: Alex Efros <powerman_at_powerman.name>
Date: Thu, 16 Oct 2014 00:18:53 +0300

Hi!

On Wed, Oct 15, 2014 at 01:09:14PM -0700, Avery Payne wrote:
> Alice would like to have foobar service controlled by her. She asks Bob to
> set up a user-specific service so she can do so. Bob creates a directory,

Or, if Bob refuses to do this, Alice can setup everything herself by
adding this to she's crontab:

*/1 * * * * exec chpst -L ~/service/.lock runsvdir ~/service/ &>/dev/null &

This add dependency on cron (which is usually available) and small (up to
1 minute) delay before Alice's services will be started after OS reboot,
but doesn't need neither root privileges nor system-wide installed runit,
so you can use this even on most shared hostings (where you able to either
compile runit in home directory or upload runit binaries).

-- 
			WBR, Alex.
Received on Wed Oct 15 2014 - 21:18:53 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC