On Mon, Jun 30, 2025 at 6:26 AM Stef Bon <stef...@gmail.com> wrote:
>
> Hi,
>
> it's important for a program to detect it has been started by systemd.

No, programs should not attempt to detect if they are being run by
systemd or any other init.
programs can either behave as a traditional sysv daemon or as a "new
style" daemon as documented in man 7 daemon
may implement a flag like --systemd or more usually a --no-fork or
whatever option.

Reply via email to