summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system/fastnetmon.service.d
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-21 20:35:19 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-21 20:35:19 +0200
commitef48b2482f3e516c830c04589193377ee8b45a5e (patch)
tree8301cdb98a236a948ac53a27ea86b051373835eb /src/etc/systemd/system/fastnetmon.service.d
parent902586e248dd84883a097a3daca0b1129db25b38 (diff)
downloadvyos-1x-ef48b2482f3e516c830c04589193377ee8b45a5e.tar.gz
vyos-1x-ef48b2482f3e516c830c04589193377ee8b45a5e.zip
fastnetmon: T2659: move configuration files to /run
Diffstat (limited to 'src/etc/systemd/system/fastnetmon.service.d')
-rw-r--r--src/etc/systemd/system/fastnetmon.service.d/override.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/systemd/system/fastnetmon.service.d/override.conf b/src/etc/systemd/system/fastnetmon.service.d/override.conf
new file mode 100644
index 000000000..8f7f3774f
--- /dev/null
+++ b/src/etc/systemd/system/fastnetmon.service.d/override.conf
@@ -0,0 +1,12 @@
+[Unit]
+RequiresMountsFor=/run
+ConditionPathExists=/run/fastnetmon/fastnetmon.conf
+After=
+After=vyos-router.service
+
+[Service]
+Type=simple
+WorkingDirectory=/run/fastnetmon
+PIDFile=/run/fastnetmon/fastnetmon.pid
+ExecStart=
+ExecStart=/usr/sbin/fastnetmon --configuration_file /run/fastnetmon/fastnetmon.conf