Date: Mon, 22 Jan 2024 19:45:16 -0500 From: Paul Procacci <pprocacci@gmail.com> To: "Robert R. Russell" <robert@rrbrussell.com> Cc: freebsd-questions@freebsd.org Subject: Re: User specific daemons Message-ID: <CAFbbPugLq_LxQKjFa6mzEkYtOiJQ9_Y4YD0DM_%2B%2BgvyLSG7c%2BQ@mail.gmail.com> In-Reply-To: <20240122175118.1ef3b25e@venus.private.rrbrussell.com> References: <20240122175118.1ef3b25e@venus.private.rrbrussell.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Mon, Jan 22, 2024 at 6:51 PM Robert R. Russell <robert@rrbrussell.com> 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 -- __________________ :(){ :|:& };: [-- Attachment #2 --] <div dir="ltr"><div><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 22, 2024 at 6:51 PM Robert R. Russell <<a href="mailto:robert@rrbrussell.com">robert@rrbrussell.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How do I start and maintain a program as a user specific daemon? I<br> don't mean run a daemon as a specific user. I need one of each daemon<br> per user.<br> <br> Under Linux I could create a few $HOME/.config/systemd/daemon.service<br> files run systemctl --user enable daemon.service and the problem was<br> solved. The services specifically include tmux, and ssh-agent or<br> gpg-agent. There were some other services I used this for but those were<br> more Linux specific and thus less important.<br> <br> Before I go with the metaphorical hammer meets nail shaped object<br> approach and port half of SystemD to FreeBSD using Rust what options<br> should I try first.<br> <br> </blockquote></div><br clear="all"></div>Many different ways to do this. I myself would probably use daemontools (<a href="https://cr.yp.to/daemontools/install.html">https://cr.yp.to/daemontools/install.html</a>), but this certainly isn't the only option.<br></div><div><br></div>~Paul<br><div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">__________________<br><br>:(){ :|:& };:</div></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPugLq_LxQKjFa6mzEkYtOiJQ9_Y4YD0DM_%2B%2BgvyLSG7c%2BQ>
