diff options
author | Hideki Saito <hideki@hidekisaito.com> | 2015-06-05 05:34:02 +0300 |
---|---|---|
committer | Hideki Saito <hideki@hidekisaito.com> | 2015-06-05 05:34:02 +0300 |
commit | 0ec6ffcb731852fbf739d742f58ec72483f18c2a (patch) | |
tree | f907e64b1e2326e8b45b13056d26d4c5274ff5d5 /systemd | |
parent | ff497063732fdc08300c8bc166f4d4f62317e98a (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.service | 17 | ||||
-rw-r--r-- | systemd/softether-vpnclient.service | 18 | ||||
-rw-r--r-- | systemd/softether-vpnserver.service | 18 |
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 + + |