From nobody Mon Jan 22 23:51:18 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 4TJn705w1Vz58Sc9 for ; Mon, 22 Jan 2024 23:51:24 +0000 (UTC) (envelope-from robert@rrbrussell.com) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (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 4TJn6z5S6Gz4mQm for ; Mon, 22 Jan 2024 23:51:23 +0000 (UTC) (envelope-from robert@rrbrussell.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rrbrussell.com header.s=fm2 header.b=hhh3RjAt; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=TNXdahOk; dmarc=pass (policy=quarantine) header.from=rrbrussell.com; spf=pass (mx1.freebsd.org: domain of robert@rrbrussell.com designates 64.147.123.19 as permitted sender) smtp.mailfrom=robert@rrbrussell.com Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 979B63200AF6 for ; Mon, 22 Jan 2024 18:51:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 22 Jan 2024 18:51:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rrbrussell.com; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1705967481; x=1706053881; bh=t3 Fpls2o1DEhXC5u59p4LY9PJUJosaJv3NXcLUkf6I8=; b=hhh3RjAtVxqZAeB+wJ FIQbAscQ7wNEQfblUxuHuCO9/59IB9zIoejy5DA0nSR2apDkCwtZ4JhSueOIwlfK RBEArTbOuVRicn5RLGbGE9e8EzqTLbI5iomY+XKH0GM8pk8XUMRV6DXkhWCQLxtE Zs4pzg22skwcy1RPvFBYeJnT3d+FmcEbbxUcOdklFIYgjGqXT1C7JSkkY7wt+v9m GxKN5A9s/68/QFa9U5DMB2dGSvWtuvrsGskABk3KVLu8bl0Hgj8XV6Le0dxZdK2Y MGgJWIRcze7Jc/BC/nZlbKxzcBeTGWgZ5TnzU2EOjP0wsSOv/mIcsWAL8MPVYwvr V2ew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705967481; x=1706053881; bh=t3Fpls2o1DEhXC5u59p4LY9PJUJo saJv3NXcLUkf6I8=; b=TNXdahOkN8mrd2jDecaI8JKi9zrVXu0CKSvRgCxtUrFO ITC8+WKYdu2vCNNjkhbi8PNmAUZ4sNmfPVnOu6w0OfegrLPzcNV1ziq7EBxQ1a8D +gmksBIR+uGzq/FJq24F1VD3QKZdHdTtFbJlIZ9yAabnIXAemVSIHBO5Okj0rmzg ysXkXaxK0IdYnF1NB0XO55muR7phDcIAxQK8dGAPXFOk31BpLdeUV6krohl2nmmp ICnEe/+f+anYOyttB3ADRRbjAhRr4PL86IFyd/Cyeq6chPOXpbHWw1ukMqOwmYvA SpK1LkBrEcpnoR17kw5iNPdESKm1e+rayu9NyFzHYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekjedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkofggtgfgsehtjeertd ertddvnecuhfhrohhmpedftfhosggvrhhtucftrdcutfhushhsvghllhdfuceorhhosggv rhhtsehrrhgsrhhushhsvghllhdrtghomheqnecuggftrfgrthhtvghrnhepteetteegfe dtjeevleehvdeiheehueffjeelhfdvfeevieffheegjeegjeefkefhnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosggvrhhtsehrrhgsrh hushhsvghllhdrtghomh X-ME-Proxy: Feedback-ID: ie421460a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 22 Jan 2024 18:51:20 -0500 (EST) Date: Mon, 22 Jan 2024 17:51:18 -0600 From: "Robert R. Russell" To: freebsd-questions@freebsd.org Subject: User specific daemons Message-ID: <20240122175118.1ef3b25e@venus.private.rrbrussell.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[rrbrussell.com,quarantine]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.19:from]; R_DKIM_ALLOW(-0.20)[rrbrussell.com:s=fm2,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.19]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.19:from]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[rrbrussell.com:+,messagingengine.com:+]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[robert]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4TJn6z5S6Gz4mQm 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.