summarylogtreecommitdiffstats
path: root/zoraxy.service
blob: f007784e9c151cefc83baaa89fb6bdaca2eb39c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[Unit]
Description=Zoraxy Reverse Proxy Server

# start not befor network is online
After=network-online.target
Wants=network-online.target

[Service]
Type=simple

# start zoraxy as root
User=root
Group=root

# folder where zoraxy config & runtime data are located
WorkingDirectory=/opt/zoraxy

# use absolute path for zoraxy always
# options:
# -fastgeoip=true               faster GeoIP-lookup, but more RAM ...
#                               faster GeoIP-lookup, but uses more RAM ...
# -log /var/log/zoraxy          log to file / dont create local log folder
# -port=:8008                   use port instead of defalut (8000)

ExecStart=/usr/bin/zoraxy -log /var/log/zoraxy -port=:8000 2>&1 | logger &
ExecStop=/usr/bin/kill "$MAINPID"


[Install]
WantedBy=multi-user.target