summarylogtreecommitdiffstats
path: root/v2raya.service
diff options
context:
space:
mode:
authormzz20172020-03-27 07:42:52 +0000
committermzz20172020-03-27 07:42:52 +0000
commit9de88531f73c124a84859d9c4217c335ba114f38 (patch)
treee8f92a5ccf4f5c8a088650ecd5ef4c138a075132 /v2raya.service
downloadaur-9de88531f73c124a84859d9c4217c335ba114f38.tar.gz
release v0.6.8.2
Diffstat (limited to 'v2raya.service')
-rw-r--r--v2raya.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/v2raya.service b/v2raya.service
new file mode 100644
index 000000000000..ffa52d62ae56
--- /dev/null
+++ b/v2raya.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=V2RayA Service
+Documentation=https://github.com/mzz2017/V2RayA/blob/master/README.md
+After=network.target
+Wants=network.target
+
+[Service]
+Type=simple
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
+Environment=V2RAYA_CONFIG=/etc/v2ray/v2raya.json
+ExecStart=/usr/bin/v2raya
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file