summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2015-07-07 11:50:35 +0200
committerAlberto Gonzalez Iniesta <agi@inittab.org>2015-07-07 11:50:35 +0200
commit99445ba3da94a88f49b976ba8996aa33cbc10bb5 (patch)
tree17e9a8c258d33554a56de66e27bc35a9ff0d4fc6
parent7b4a3a0cf7a72498f4eaf6e4fc65fd34571f50f2 (diff)
Move ProtectSystem to the right .service file
-rw-r--r--debian/openvpn.service1
-rw-r--r--debian/openvpn@.service1
2 files changed, 1 insertions, 1 deletions
diff --git a/debian/openvpn.service b/debian/openvpn.service
index 58669f4..0075cc4 100644
--- a/debian/openvpn.service
+++ b/debian/openvpn.service
@@ -11,7 +11,6 @@ RemainAfterExit=yes
ExecStart=/bin/true
ExecReload=/bin/true
WorkingDirectory=/etc/openvpn
-ProtectSystem=yes
[Install]
WantedBy=multi-user.target
diff --git a/debian/openvpn@.service b/debian/openvpn@.service
index be47429..a136de9 100644
--- a/debian/openvpn@.service
+++ b/debian/openvpn@.service
@@ -8,6 +8,7 @@ Type=forking
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/etc/openvpn
+ProtectSystem=yes
[Install]
WantedBy=multi-user.target