npub1lf…949ls on Nostr: npub16mtxp…dpnwy There actually is, it's just very well hidden. Conflicts=<unit> ...
npub16mtxp68k8c3p2sj0wzhagt3kd8ywkvzlkfyt3vrx9cahzfz000vs8dpnwy (npub16mt…pnwy)
There actually is, it's just very well hidden.
Conflicts=<unit>
OnSuccess=<unit>
OnFailure=<unit>
Because a service can only enter one of those two states when it finishes, this is robust.
I use this to stop paperless while the exporter runs:
https://github.com/Atemu/nixos-config/blob/61752e2c0f5a449dfb50cd774ddd509f2381f7f6/modules/paperless/module.nix#L59-L95
There actually is, it's just very well hidden.
Conflicts=<unit>
OnSuccess=<unit>
OnFailure=<unit>
Because a service can only enter one of those two states when it finishes, this is robust.
I use this to stop paperless while the exporter runs:
https://github.com/Atemu/nixos-config/blob/61752e2c0f5a449dfb50cd774ddd509f2381f7f6/modules/paperless/module.nix#L59-L95