What is Nostr?
zirias (on snac) /
npub18je…uypq
2024-11-08 09:46:05
in reply to nevent1q…jelf

zirias (on snac) on Nostr: Seriously? The purpose of daemon(8) is to run something as a daemon that actually ...

Seriously? The purpose of daemon(8) is to run something as a daemon that actually isn't one. And I'd define a daemon as "a program able to fork itself into background while properly detaching from the current session and terminal, and optionally also handling a pidfile". Such programs should never be wrapped into daemon(8).

Now, if snac can't do that by itself, it's fine. But the "automatic restart" feature of daemon(8) is IMHO very questionable, because it's a workaround just hiding a problem that could go worse. Imagine a broken program that, while triggering broken behavior, deletes or corrupts important data. You don't want that to automatically restart, giving it the chance to wreak more havoc.

CC: vermaden (npub1era…97pa)
Author Public Key
npub18jert674ht8vkxndnav3h332veq04t5qdtcdekn7sdj3q8cddvsqsduypq