Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHideki Saito <hideki@hidekisaito.com>2015-06-05 05:34:02 +0300
committerHideki Saito <hideki@hidekisaito.com>2015-06-05 05:34:02 +0300
commit0ec6ffcb731852fbf739d742f58ec72483f18c2a (patch)
treef907e64b1e2326e8b45b13056d26d4c5274ff5d5 /systemd
parentff497063732fdc08300c8bc166f4d4f62317e98a (diff)
Systemd configuration files
Expects vpnserver/vpnclient/vpnbridge to be in /opt. Having a file do_not_run within these directories inhibits launch of a respective module.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/softether-vpnbridge.service17
-rw-r--r--systemd/softether-vpnclient.service18
-rw-r--r--systemd/softether-vpnserver.service18
3 files changed, 53 insertions, 0 deletions
diff --git a/systemd/softether-vpnbridge.service b/systemd/softether-vpnbridge.service
new file mode 100644
index 00000000..fa4794d9
--- /dev/null
+++ b/systemd/softether-vpnbridge.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=SoftEther VPN Bridge
+After=network.target auditd.service
+ConditionPathExists=!/opt/vpnbridge/do_not_run
+
+[Service]
+Type=forking
+ExecStart=/opt/vpnbridge/vpnbridge start
+ExecStop=/opt/vpnbridge/vpnbridge stop
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+Alias=softether-vpnserver.service
+
+
diff --git a/systemd/softether-vpnclient.service b/systemd/softether-vpnclient.service
new file mode 100644
index 00000000..fe9353d1
--- /dev/null
+++ b/systemd/softether-vpnclient.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=SoftEther VPN Client
+After=network.target auditd.service
+ConditionPathExists=!/opt/vpnclient/do_not_run
+
+[Service]
+Type=forking
+EnvironmentFile=-/opt/vpnclient
+ExecStart=/opt/vpnclient/vpnclient start
+ExecStop=/opt/vpnclient/vpnclient stop
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+Alias=softether-vpnclient.service
+
+
diff --git a/systemd/softether-vpnserver.service b/systemd/softether-vpnserver.service
new file mode 100644
index 00000000..1a3be543
--- /dev/null
+++ b/systemd/softether-vpnserver.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=SoftEther VPN Server
+After=network.target auditd.service
+ConditionPathExists=!/opt/vpnserver/do_not_run
+
+[Service]
+Type=forking
+EnvironmentFile=-/opt/vpnserver
+ExecStart=/opt/vpnserver/vpnserver start
+ExecStop=/opt/vpnserver/vpnserver stop
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+Alias=softether-vpnserver.service
+
+