From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Reza Alizadeh Majd" Subject: Re: extending a service to create an extra directory Date: Sat, 20 Jul 2019 10:48:23 +0430 Message-ID: References: <32B3BD3C-15A9-4428-904E-E4E341A7A55C@vllmrt.net> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56359) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoihQ-00069Q-PC for help-guix@gnu.org; Sat, 20 Jul 2019 02:18:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoihP-0004Lt-Qc for help-guix@gnu.org; Sat, 20 Jul 2019 02:18:28 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:38117) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hoihP-0004L0-ER for help-guix@gnu.org; Sat, 20 Jul 2019 02:18:27 -0400 In-Reply-To: <32B3BD3C-15A9-4428-904E-E4E341A7A55C@vllmrt.net> 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: Robert Vollmert Cc: help-guix@gnu.org Hi,=20 On Thu, Jul 18, 2019, at 6:30 PM, Robert Vollmert wrote: > Hi, >=20 > I=E2=80=99m trying to set up nginx properly, and my config involves a > cache directory, say /var/nginx/cache. To encode this properly, > I=E2=80=99d like to to make my nginx service create that directory > with appropriate user and rights on service activation. I can=E2=80=99= t > figure out how to do that without assembling a whole new service > out of the parts of the existing nginx-service. There must be a > more reasonable way? >=20 > Cheers > Robert >=20 It seems that proper way to do this is to define a new service for activating cache directory. since it was defined previously on Guix CI server:=20 https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/module= s/sysadmin/services.scm#n221 Best,=20 Reza