Re: [systemd-devel] Howto detect a program/service is started by systemd?

2025-07-16 Thread Stef Bon
Hi all, I understand. I've added some arguments like --fork and --socketactivation and those work. Also found, but you probably already know: https://stackoverflow.com/questions/61753655/is-forking-in-a-daemon-still-necessary-when-using-systemd Thanks all, S. Bon

Re: [systemd-devel] Howto detect a program/service is started by systemd?

2025-07-16 Thread Adrian Vovk
Hello, Most projects handle this using a CLI argument, like --foreground or --no-daemonize or something like that. Then in the systemd unit file, you'd pass that CLI argument on the ExecStart line. Best, Adrian On Mon, Jun 30, 2025, 06:26 Stef Bon wrote: > Hi, > > it's important for a program