summarylogtreecommitdiffstats
path: root/rockhopper.service
diff options
context:
space:
mode:
authorwolftankk2015-10-24 19:53:00 +0800
committerwolftankk2015-10-24 19:53:00 +0800
commit2ae35bfeba1fd66d29f77fbe3321249ba22f63a6 (patch)
tree2f9df0ebfeb4c0ca7cea0c413cdffdd48c78328a /rockhopper.service
downloadaur-rockhopper.tar.gz
init rockhopper vpn
Diffstat (limited to 'rockhopper.service')
-rw-r--r--rockhopper.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/rockhopper.service b/rockhopper.service
new file mode 100644
index 00000000000..80b4209432a
--- /dev/null
+++ b/rockhopper.service
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2014 - 2015 TETSUHARU HANADA <rhpenguine@gmail.com>
+# All rights reserved.
+#
+
+[Unit]
+Description=Rockhopper VPN (IPsec)
+After=network.target
+
+[Service]
+Type=forking
+EnvironmentFile=/var/lib/rhpprotected/script/rhp_systemd_env
+ExecStartPre=/var/lib/rhpprotected/script/rhp_systemd_ext init dont_invoke_trace
+ExecStart=/usr/sbin/rockhopperd -m /var/lib/rhpmain/config/main.xml -p /var/lib/rhpprotected/config/protected.xml -u rhpmain -s rhpprotected -i /var/run/rockhopper
+ExecStopPost=/var/lib/rhpprotected/script/rhp_systemd_ext cleanup
+TimeoutStopSec=60
+
+[Install]
+WantedBy=multi-user.target