From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Sigurdsen Subject: Webservices and Shepherd Date: Sun, 2 Apr 2017 11:44:26 +0200 Message-ID: <20170402114426.4c656028@hitpoints> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuc4Q-00006z-T3 for help-guix@gnu.org; Sun, 02 Apr 2017 05:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuc4M-0004Ml-GH for help-guix@gnu.org; Sun, 02 Apr 2017 05:45:14 -0400 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:32996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuc4M-0004Io-8F for help-guix@gnu.org; Sun, 02 Apr 2017 05:45:10 -0400 Received: by mail-lf0-x235.google.com with SMTP id h125so59661871lfe.0 for ; Sun, 02 Apr 2017 02:45:08 -0700 (PDT) Received: from hitpoints (238.109-247-43.customer.lyse.net. [109.247.43.238]) by smtp.gmail.com with ESMTPSA id a16sm1927293lfk.24.2017.04.02.02.45.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Apr 2017 02:45:06 -0700 (PDT) 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: "help-guix@gnu.org" Hi Guix! I'm sending two threads with the same intro, read below the line for the questions. I've been playing around with guixsd on my day-to-day work laptop for a month or so now and have to say I'm thoroughly happy about how everything is put together and mostly _just works_. I'll note that I'm still very much learning guile and scheme. But the manual (https://www.gnu.org/software/guile/manual/) is amazing. ------------------------------------------------------------------------------------------------- I will, over the coming week or so, begin setting up a server (for web pages, file sharing and hopefully email). Webservices: Is it preferred to put their "program files" in package definitions and telling shepherd how to run them in services? Are there any examples of a guixsd server config with multiple web services out there? 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)? My entire configuration with homemade modules can be found at: https://notabug.org/thomassgn/guixsd-configuration