summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-12 20:14:09 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-12 20:14:26 +0200
commit254faff9678eb03cd212f6e4b08f8502bd28b492 (patch)
tree3fc9efdbfc08080c21c0c4e5f8e0ffcdf2760444 /src/systemd
parent1b612f2eab47125aa7648da9d79308c061fa0262 (diff)
downloadvyos-1x-254faff9678eb03cd212f6e4b08f8502bd28b492.tar.gz
vyos-1x-254faff9678eb03cd212f6e4b08f8502bd28b492.zip
vpn: sstp: T2185: move generated files to volatile /run/accel-ppp directory
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/accel-ppp-sstp.service14
-rw-r--r--src/systemd/accel-ppp@.service16
2 files changed, 16 insertions, 14 deletions
diff --git a/src/systemd/accel-ppp-sstp.service b/src/systemd/accel-ppp-sstp.service
deleted file mode 100644
index 03bd7f99c..000000000
--- a/src/systemd/accel-ppp-sstp.service
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Accel-PPP/SSTP
-After=vyos-router.service
-
-[Service]
-ExecStart=/usr/sbin/accel-pppd -d -p /run/accel-pppd-sstp.pid -c /etc/accel-ppp/sstp.conf
-ExecReload=/bin/kill -SIGUSR1 $MAINPID
-PIDFile=/run/accel-pppd-sstp.pid
-Type=forking
-Restart=always
-
-[Install]
-WantedBy=multi-user.target
-Alias=accel-ppp-sstp.service
diff --git a/src/systemd/accel-ppp@.service b/src/systemd/accel-ppp@.service
new file mode 100644
index 000000000..256112769
--- /dev/null
+++ b/src/systemd/accel-ppp@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Accel-PPP - High performance VPN server application for Linux
+RequiresMountsFor=/run
+ConditionPathExists=/run/accel-pppd/%i.conf
+After=vyos-router.service
+
+[Service]
+WorkingDirectory=/run/accel-pppd
+ExecStart=/usr/sbin/accel-pppd -d -p /run/accel-pppd/%i.pid -c /run/accel-pppd/%i.conf
+ExecReload=/bin/kill -SIGUSR1 $MAINPID
+PIDFile=/run/accel-pppd/%i.pid
+Type=forking
+Restart=always
+
+[Install]
+WantedBy=multi-user.target