From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Webservices and Shepherd Date: Mon, 03 Apr 2017 18:56:09 +0300 Message-ID: <87fuhpwkme.fsf@gmail.com> References: <20170402114426.4c656028@hitpoints> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cv4L1-000396-MN for help-guix@gnu.org; Mon, 03 Apr 2017 11:56:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cv4Kx-0001Va-KZ for help-guix@gnu.org; Mon, 03 Apr 2017 11:56:15 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:36111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cv4Kx-0001V2-DF for help-guix@gnu.org; Mon, 03 Apr 2017 11:56:11 -0400 Received: by mail-lf0-x231.google.com with SMTP id x137so77990941lff.3 for ; Mon, 03 Apr 2017 08:56:11 -0700 (PDT) In-Reply-To: <20170402114426.4c656028@hitpoints> (Thomas Sigurdsen's message of "Sun, 2 Apr 2017 11:44:26 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Thomas Sigurdsen Cc: "help-guix@gnu.org" Thomas Sigurdsen (2017-04-02 11:44 +0200) wrote: > Hi Guix! Hello! [...] > And when it comes to shepherd: I've seen a few configs where shepherd is > running as a user in addition to root. It looks like this is a good way to > separate webservices and similar, maybe even giving them separate users. But > does it mean shepherd is running multiple instances, increasing overhead and > difficulty of management (as in how do I know which shepherd I'm talking to > and so on)? Yes, I mean "yes" to multiple instances: the root's Shepherd can't handle user services, you need to start another (user) Shepherd for that. Knowing which instance you are talking to is easy: - when you run "herd" command as root, it talks to the root's Shepherd (on GuixSD its socket file is "/var/run/shepherd/socket"); - when you run "herd" as user, it talks to the user running instance (its default socket is "~/.config/shepherd/run/socket"). -- Alex