https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
7 lines
178 B
Diff
7 lines
178 B
Diff
--- a/netatop.service
|
|
+++ b/netatop.service
|
|
@@ -11,3 +11,3 @@
|
|
ExecStopPost=@kmod@/bin/rmmod netatop
|
|
-PIDFile=/var/run/netatop.pid
|
|
+PIDFile=/run/netatop.pid
|
|
RemainAfterExit=yes
|