From nobody Tue Jan 23 00:45:16 2024 X-Original-To: freebsd-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 4TJpKM28cKz58XSG for ; Tue, 23 Jan 2024 00:45:27 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJpKM0QTlz4sry for ; Tue, 23 Jan 2024 00:45:27 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e86a9fc4bso48482255e9.2 for ; Mon, 22 Jan 2024 16:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705970725; x=1706575525; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V9bQfkqrbjjIqPQCO7JW6vP2h1wgoNoOhAKFCgRUpvA=; b=G/iljX7g8Bnsr+bX6x1MzR9laUEcwJ9NYXx23abxZtziD8A4ulkka99APEBrgB7q95 gU3gX6u0Ow+IPIjKS5mbWYuKj3ErIwXgO3NTIKLIPd0nfa3PbY4GzNms0Dr9HolK2sbG HK88nADx4unR+zsoqK2/kdTMObSzQS7E56A7maDTMVuAVeFTbHfrawEi+gHrv5pWrds+ gIvQwf+kLUAjmen5tZ7Kb37oiOfMDwR/F4iXkad2uSKcIvjLkg8S1IXszVdf6QxYKRqR eiMs7ZaS1IzgBxxrCyNI+l+tyoliQv0GkbJisuQB9B1r3Yl45wWmtxCrwJUVEOSp51Vb QBGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705970725; x=1706575525; h=cc: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=V9bQfkqrbjjIqPQCO7JW6vP2h1wgoNoOhAKFCgRUpvA=; b=g+MKMXaiOVGxq0p58cuLoA/OdPYVxi8BOcksaTj6EnOTG+pp7BBOK3w1+8xrEs0vU+ TSjNryXf1m5hlZoyLjlzTJvvnHOxWDH/ZRdBV4jukGtAg2P92aXgoVhUzrvTX0efXbfz FSVnQVCZuf8C9WRMHxt0Ap2kY2S4PvEO6GEZExQX136NIPblplLqG6xmZ3enRKHAzE9c 1tzuU1OEl14BZs+Q4fulLto8gAb+2TQ8zO+wnV+R4/mDDZ3uDV+sIlyWQp0yAiaTS7MU j8H1pkQ35O8ccBE+rarsXZmLaav66xgfwAkHIrCDzxK8YVqTWkk5TKokoORnPUvdIFm3 2Pug== X-Gm-Message-State: AOJu0YyIKN+VyeDP9qZDGtCJEzPuhZ/ROZ3Vq2DenWPporvQ+0nDI/d/ r6MR+BiIypmVNFkM6PjuI61BEpyPkhYr1jEtTJEBWuy2LhZypFqSsQLfJoPcxrifSOFs5SqONfo ZV7g9dhNmMU+TbLhuKktM8W/H2g== X-Google-Smtp-Source: AGHT+IHLKauRpmCAGR7KjnG1WoS5kTyEVipApOJZNwcE/BTQf7NJfSp5JQLiv0tyfKxnTNJKVFpi1+V+mkDG+1boz3A= X-Received: by 2002:a05:600c:19c7:b0:40e:aed5:3218 with SMTP id u7-20020a05600c19c700b0040eaed53218mr44764wmq.39.1705970724781; Mon, 22 Jan 2024 16:45:24 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <20240122175118.1ef3b25e@venus.private.rrbrussell.com> In-Reply-To: <20240122175118.1ef3b25e@venus.private.rrbrussell.com> From: Paul Procacci Date: Mon, 22 Jan 2024 19:45:16 -0500 Message-ID: Subject: Re: User specific daemons To: "Robert R. Russell" Cc: freebsd-questions@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000c44ed060f924386" X-Rspamd-Queue-Id: 4TJpKM0QTlz4sry X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --0000000000000c44ed060f924386 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 6:51=E2=80=AFPM Robert R. Russell wrote: > How do I start and maintain a program as a user specific daemon? I > don't mean run a daemon as a specific user. I need one of each daemon > per user. > > Under Linux I could create a few $HOME/.config/systemd/daemon.service > files run systemctl --user enable daemon.service and the problem was > solved. The services specifically include tmux, and ssh-agent or > gpg-agent. There were some other services I used this for but those were > more Linux specific and thus less important. > > Before I go with the metaphorical hammer meets nail shaped object > approach and port half of SystemD to FreeBSD using Rust what options > should I try first. > > Many different ways to do this. I myself would probably use daemontools ( https://cr.yp.to/daemontools/install.html), but this certainly isn't the only option. ~Paul --=20 __________________ :(){ :|:& };: --0000000000000c44ed060f924386 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Jan 22, 2024 at 6:5= 1=E2=80=AFPM Robert R. Russell <robert@rrbrussell.com> wrote:
How do I start and maintain a program as a user speci= fic daemon? I
don't mean run a daemon as a specific user. I need one of each daemon per user.

Under Linux I could create a few $HOME/.config/systemd/daemon.service
files run systemctl --user enable daemon.service and the problem was
solved. The services specifically include tmux, and ssh-agent or
gpg-agent. There were some other services I used this for but those were more Linux specific and thus less important.

Before I go with the metaphorical hammer meets nail shaped object
approach and port half of SystemD to FreeBSD using Rust what options
should I try first.


Many different ways to do this.= =C2=A0 I myself would probably use daemontools=C2=A0 (https://cr.yp.to/daemontools/install.html<= /a>), but this certainly isn't the only option.
--0000000000000c44ed060f924386--