From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2052 Path: news.gmane.org!not-for-mail From: George Georgalis Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: installing runit as a user... Date: Thu, 21 Oct 2010 16:46:25 -0700 Message-ID: <20101021234625.GE5055@bonnie.galis.org> References: <20101021211636.GC5055@bonnie.galis.org> <87r5fj9o76.fsf@servo.finestructure.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287704789 16826 80.91.229.12 (21 Oct 2010 23:46:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2010 23:46:29 +0000 (UTC) Cc: Gerrit Pape , supervision@list.skarnet.org To: Jameson Rollins Original-X-From: supervision-return-2286-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 22 01:46:28 2010 Return-path: Envelope-to: gcsg-supervision@lo.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1P94q3-0006cz-81 for gcsg-supervision@lo.gmane.org; Fri, 22 Oct 2010 01:46:27 +0200 Original-Received: (qmail 9579 invoked by uid 76); 21 Oct 2010 23:48:35 -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 9571 invoked from network); 21 Oct 2010 23:48:35 -0000 Mail-Followup-To: Jameson Rollins , Gerrit Pape , supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <87r5fj9o76.fsf@servo.finestructure.net> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2052 Archived-At: On Thu 21 Oct 2010 at 06:27:09 PM -0400, Jameson Rollins wrote: >On Thu, 21 Oct 2010 14:16:36 -0700, George Georgalis wrote: >> I'd like to use runit and svlogd as a user in a couple >> applications (eg x11 sessions and desktop widgets) and I was >> wondering what experiences people have had with this? > >Hi, George. I have much experience running runit as a user. On systems >where I don't have administrative access, I typically use cron to start >runsvdir on boot (as well as checking that it continues to run). > >I have also been experimenting with "user runsvdir" instances that are >controlled by the system runsvdir instance. If the user has a ~/.sv >directory, the user runsvdir process manages run dirs in that directory. >It works very well, and I use it control a lot of user daemons that I >run, including pulseaudio, mpd, urxvtd, offlineimap, msva, etc. If I >ever get the time, I hope to turn this into a package that would allow >admins to easily offer runsvdir service to their users. great idea, I don't imagine you have sv configured to look in ~/sv or some such? managing the path to sv and the path sv uses could get confusing since I normally use the sgid on the supervise directory to control root services as a user... maybe make svu (sv-user) to differentiate? I knew there would be more decisions to make... >> It looks like both socklog and runit require a package/upgrade >> rewrite since they don't accept any configuration, but that should >> be straightforward. > >I'm not sure what you mean by this. I'm also not sure why socklog would >be relevant if you're interested in running runit as a normal user. >socklog is a syslogd replacement, and at least requires being root to >start, unless there's something I don't understand. I was planning to install socklog to get the svlogd binary... but maybe that's included with runit? I haven't checked. --George