From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2115 Path: news.gmane.org!not-for-mail From: Jameson Graef Rollins Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Per-user service managers Date: Thu, 20 Oct 2011 12:16:56 -0700 Message-ID: <87vcrja2xj.fsf@servo.finestructure.net> References: <87aa8vblyz.fsf@servo.finestructure.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1319138226 12695 80.91.229.12 (20 Oct 2011 19:17:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2011 19:17:06 +0000 (UTC) To: Mike Buland , supervision@list.skarnet.org Original-X-From: supervision-return-2349-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Oct 20 21:17:04 2011 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 1RGy6y-0007lh-0l for gcsg-supervision@lo.gmane.org; Thu, 20 Oct 2011 21:17:04 +0200 Original-Received: (qmail 19597 invoked by uid 76); 20 Oct 2011 19:20:06 -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 19589 invoked from network); 20 Oct 2011 19:20:06 -0000 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new In-Reply-To: User-Agent: Notmuch/0.9-15-g937a514 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2115 Archived-At: On Thu, 20 Oct 2011 12:11:38 -0600, Mike Buland wrote: > As for controlling the runsvdir processes, I've never had ocassion to stop > them once their started. My program does track all of them, and it has been > my intention to shutdown the runsvdir process for a user when they are > removed from the svusers group. However, since runsvdir is designed to run > forever and my intention was to provide reliable services for priveleged > users, I'm not sure the restarting users runsvdir processes is necesarry. > That doesn't mean I wouldn't happily accept a patch that provides that > feature. I think control of the user runsvdir processes is just as important as control of other long-running processes that you usually intend to have run forever (cron or apache or whatever). That's why the sv interface exists, after all, even though you don't usually intend to ever stop cron, for example. Ultimately there's always a need. Stop the user's service when they are removed from the system is a relevant example, for instance. I like to have a separate runsvdir process per user (as your system has) but then to also have system-level runsv control over those user runsvdir processes. That's why I opted to go for separate runsv directories per user. I can then use a simple script to construct and tear down those runsv directories as needed, and then use sv as root to control the user directories from a system level. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJOoHOoAAoJEO00zqvie6q8+GYP/0hV1eqQoRfXQpI3LsQUhwNn PQQT4/lM6AgviebzO6l9KmyjvRzB/WY+iDF2DR+4y4OFSdgWvtuxRV7Mzt5Sb/R4 i2cuWMukDixM82/Ds43MdCKdM56cN3c2IwoIvkLLzpO6e3NUH7Q7h+kKAwsnI59h E9ga3rIPqZqOc76G4mme8VnlMlFSLsTHjAPdO5bSGakZlWZK2JXdiXECpTLvajg2 j3pM727Khp+j4BOvG3YV389FkgvDvTp1XLz72MoOVo8po9SzJjHoRGQGNLkj1KIH 5D/rXgiBl8lQmwX3H6RZJBNkqGoE8WHrYA2OVRhfIa26CIDtJe8rQnrah54ZmTTI 8eg92sOBcJQySIl15d/L0pPQeCPDvnhUuwyE1YW0iHT01KUUowjt3K+d2sAK+U0z W/y1X9oq09t2N25zqzIii/8KFf4EZ7asGK8SdsG9bnvDuVSKXOusGAmIlmqZfxVQ u/YNBFT9A7Jg8V8QwJFQEr7m4p1ojbOuau1LpeYH6WRc86y+WtZcaexuHkN02fTP /tHdiMrX0vhPVNGS0rVJglVyiG1W2fIdHe/kuCMNERsO3/o3J22il3xmcaIHlZ/3 3mJAdj5tiKMajDNinvhtDduQifUFzpnTjMK9NxIB97j/9xDT6v+b70y8xVwM03pP MqNwYIMU8NigtFSX12lG =wnuR -----END PGP SIGNATURE----- --=-=-=--