From nobody Sat Sep 14 16:39:39 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 4X5cN52Qcdz5Wp1f for ; Sat, 14 Sep 2024 16:39:49 +0000 (UTC) (envelope-from fatty.merchandise677@aceecat.org) Received: from beesty.loosely.org (beesty.loosely.org [IPv6:2600:3c01:e000:4c0::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X5cN44KL4z4np1 for ; Sat, 14 Sep 2024 16:39:48 +0000 (UTC) (envelope-from fatty.merchandise677@aceecat.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of fatty.merchandise677@aceecat.org designates 2600:3c01:e000:4c0::2 as permitted sender) smtp.mailfrom=fatty.merchandise677@aceecat.org Received: from localhost ([::1] helo=beesty ident=itz) by beesty with esmtp (Exim 4.98-4-9cb179d48) (envelope-from ) id 1spVoA-000000000P0-3kdy for questions@freebsd.org; Sat, 14 Sep 2024 09:39:40 -0700 Date: Sat, 14 Sep 2024 09:39:39 -0700 From: fatty.merchandise677@aceecat.org To: questions@freebsd.org Subject: Re: Just lost a few hours playing with daemon(8) and trying to set a path in an rc.d script Message-ID: <8fXRlSIAQNNPGjsq@aceecat.org> Mail-Followup-To: questions@freebsd.org References: <8E35B5EC-0C32-4783-B169-1600C5B003A7@gushi.org> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8E35B5EC-0C32-4783-B169-1600C5B003A7@gushi.org> X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.72 / 15.00]; NEURAL_HAM_LONG(-0.96)[-0.957]; NEURAL_HAM_SHORT(-0.96)[-0.957]; NEURAL_HAM_MEDIUM(-0.61)[-0.606]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_NO_DN(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:63949, ipnet:2600:3c01::/32, country:SG]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[aceecat.org]; RCVD_TLS_LAST(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Queue-Id: 4X5cN44KL4z4np1 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