netatop: Split out path fixing and PIDFile changes to separate patches and comment

This commit is contained in:
Paul Schyska
2021-05-16 22:07:24 +02:00
parent 563ba07543
commit 27d323d281
3 changed files with 19 additions and 10 deletions
@@ -1,14 +1,7 @@
--- a/netatop.service
+++ b/netatop.service
@@ -7,8 +7,8 @@
[Service]
Type=oneshot
-ExecStartPre=/sbin/modprobe netatop
-ExecStart=/usr/sbin/netatopd
-ExecStopPost=/sbin/rmmod netatop
@@ -11,3 +11,3 @@
ExecStopPost=@kmod@/bin/rmmod netatop
-PIDFile=/var/run/netatop.pid
+ExecStartPre=@kmod@/bin/modprobe netatop
+ExecStart=@out@/bin/netatopd
+ExecStopPost=@kmod@/bin/rmmod netatop
+PIDFile=/run/netatop.pid
RemainAfterExit=yes