3 ms·
Why is something like daemon() needed with systemd? Typically you just run your process as if it was in the foreground, and systemd handles the rest. What do yo
by jononor 10y ago
Why is something like daemon() needed with systemd? Typically you just run your process as if it was in the foreground, and systemd handles the rest. What do you lose?
- digi_owl 10y agoTmux, GNU Screen, nohup, detach...
- creshal 10y agoUnless you change a single config setting in systemd. Which distributions already do for you.
- JdeBP 10y agoChanging the config settings that logind applies to session units is the inferior solution. The superior solution is for logind to use KillUnit to send a hangup signal, leaving StopUnit for use at system shutdown. * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825394#221 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825394#221
- deleted 10y ago[deleted]
- vetinari 10y agodaemon() doesn't distinguish between terminal window life cycle and desktop session life cycle. That was the original issue that caused the problem with systemd, not detaching process from terminal.