From nobody Sat Sep 14 16:45:20 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X5cVk4p3tz5WptJ for ; Sat, 14 Sep 2024 16:45:34 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X5cVj6WyBz4qGV for ; Sat, 14 Sep 2024 16:45:33 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=XNZ1lRBu; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=pprocacci@gmail.com Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a8d43657255so264916466b.0 for ; Sat, 14 Sep 2024 09:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726332332; x=1726937132; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=LUeQEmCdeWxAbzS0s72wSoyFuOJnp8ceYW2o+5bL79s=; b=XNZ1lRBusl8bIigte8y1luNJ3sLYgvpUKIAcWiHqEPHwOc4Z81Mwy4zRYMQahi38uQ FKMs07QOkAIR8QlN08zubdZ3fnx5LM+84Sgkrm777PjWU1WT38kUUK7gWxMO1axG0yZT K0Avnl2sMIN6EKRQYraCQxFHNBpORpFJSYCeyy58pOFxfd/Pjxdgy6MF2nWgVWCF46YI Hdi2sTEgVJ8Oyfze/EU8kwsw40X6GnzpZkGbPXjhMNhhhKNCTBbd8D/6mQAIk+e+21AV /3L4CIpvZGsiP3WIg553sNeYqz3rFfwIYDU01AxdsrE3aG4phcK9kZ6ijzSjEv6L6baL mb5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726332332; x=1726937132; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LUeQEmCdeWxAbzS0s72wSoyFuOJnp8ceYW2o+5bL79s=; b=qsBGEDRM3BpPeDZlpNwUCsvegIF7RHW8XqtO8en8+q4ieblAQaVKj/wlUIZ3AeUqPg PyW3RzfnpM1imFaJlGKlCQFpvNpvotGPn8YXj43lO2W5w9SSVh8Assb65JrVf6Op/K96 fRAWQfvoTGrjufXyhjYU3lccgorEqsX80b7p/nuXnvzMeNLfewGOT969658+81IFWM9W 924o69WShGn8KXe6PB29kzjDhlrsjmqRp1GZdr4IE1JGsKJRrbsqYAmYTMSxxfE9pzRF lUcjopu6uZTI1LI04QuZ2T3+GzxEOxgw+Ia2ZKmz75RtcTBg/ijbHQVnixxg1ys7xQ6w /4JQ== X-Gm-Message-State: AOJu0Yw214lCjjHwKGB/+UAQjPhTVB98QSk3lyN/yBdKFmy72u1yrkyB hb2bsLIF/ZQwDtX5T/VQGJlmKGOR3Y9x8tF56urNeZHVPpzmA8Vn9aF8DZDhXe+hGa10Fe7npRB vQKNEWngVDI8Ib+XQoTCxW4z2TEGzsw4= X-Google-Smtp-Source: AGHT+IG4JMzr774NEgH/cQFhVXkAhFcpNBshgVDSgtyMW8ENqSq0IMrM23dG8q9rD9nlOvR4LK6joJNlBd57jfPoucQ= X-Received: by 2002:a17:907:9407:b0:a79:fbf0:8106 with SMTP id a640c23a62f3a-a9047b506b6mr745576766b.6.1726332330929; Sat, 14 Sep 2024 09:45:30 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <8E35B5EC-0C32-4783-B169-1600C5B003A7@gushi.org> <8fXRlSIAQNNPGjsq@aceecat.org> In-Reply-To: <8fXRlSIAQNNPGjsq@aceecat.org> From: Paul Procacci Date: Sat, 14 Sep 2024 12:45:20 -0400 Message-ID: Subject: Re: Just lost a few hours playing with daemon(8) and trying to set a path in an rc.d script To: questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000059796106221711bd" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.967]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from] X-Rspamd-Queue-Id: 4X5cVj6WyBz4qGV --00000000000059796106221711bd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Sep 14, 2024 at 12:40=E2=80=AFPM = wrote: > On Sat, Sep 14, 2024 at 01:23:51AM GMT, Dan Mahoney (Ports) wrote: > > > Dyjob have a service (etherpad lite) that we start from rc.d, using > > daemon, but it runs as an unprivileged user and needs a special PATH > > (because npm wants to install and update its own modules. I hate > > this, but this is the reality). > > I usually run things of this nature from supervisord. > > -- > Ian > > .. and I usually run these types of things from D.J.B's supervisor. ( https://cr.yp.to/daemontools.html) There's lots of ways to skin this cat. ~Paul --=20 __________________ :(){ :|:& };: --00000000000059796106221711bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Sep 14, 2024 at 12:= 40=E2=80=AFPM <fatty= .merchandise677@aceecat.org> wrote:
On Sat, Sep 14, 2024 at 01:23:51AM GMT, Dan Maho= ney (Ports) wrote:

> Dyjob have a service (etherpad lite) that we start from rc.d, using > daemon, but it runs as an unprivileged user and needs a special PATH > (because npm wants to install and update its own modules.=C2=A0 I hate=
> this, but this is the reality).

I usually run things of this nature from supervisord.

--
Ian


.. and I usually run these types= of things from D.J.B's supervisor.=C2=A0 (https://cr.yp.to/daemontools.html)
Ther= e's lots of ways to skin this cat.

~Paul
--
__________________

:(){ :|:& = };:
--00000000000059796106221711bd--