From 0ec6ffcb731852fbf739d742f58ec72483f18c2a Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Thu, 4 Jun 2015 19:34:02 -0700 Subject: [PATCH] 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. --- systemd/softether-vpnbridge.service | 17 +++++++++++++++++ systemd/softether-vpnclient.service | 18 ++++++++++++++++++ systemd/softether-vpnserver.service | 18 ++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 systemd/softether-vpnbridge.service create mode 100644 systemd/softether-vpnclient.service create mode 100644 systemd/softether-vpnserver.service 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 + +