From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/795 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: non-root runit Date: Sun, 15 May 2005 10:54:17 +0000 Message-ID: <20050515105419.16862.qmail@6b7dbee42e362d.315fe32.mid.smarden.org> References: <428229F2.6010302@athenacr.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116154434 6499 80.91.229.2 (15 May 2005 10:53:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 May 2005 10:53:54 +0000 (UTC) Original-X-From: supervision-return-1031-gcsg-supervision=m.gmane.org@list.skarnet.org Sun May 15 12:53:53 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DXGkk-0003WW-HW for gcsg-supervision@gmane.org; Sun, 15 May 2005 12:53:46 +0200 Original-Received: (qmail 2167 invoked by uid 76); 15 May 2005 10:54:22 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 2162 invoked from network); 15 May 2005 10:54:22 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <428229F2.6010302@athenacr.com> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:795 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:795 On Wed, May 11, 2005 at 11:51:14AM -0400, Wes Chow wrote: > We're looking into the possibility of messing with runit to allow > non-root users to start and stop their own services. I believe this > might be as easy as running an instance of runsvdir (one per user) from > within runit. Does anybody have experience doing something like this? That's how I do it. For each user that should have personal service supervision, I create a service like this $ cat /var/service/sv-pape/run #!/bin/sh exec 2>&1 exec chpst -m5000000 -upape runsvdir ~pape/service $ and a log service. Regards, Gerrit.