summarylogtreecommitdiffstats
path: root/ziti-edge-tunnel.service
blob: 7b138649136ff28d81d5bf2384efb6c970fad28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Ziti Edge Tunnel
After=network-online.target

[Service]
Type=simple
Environment="ZITI_IDENTITY_DIR=/opt/openziti/etc/identities"
Environment="ZITI_VERBOSE=2"
User=ziti
Group=ziti
UMask=0007
AmbientCapabilities=CAP_NET_ADMIN
ExecStartPre=/usr/bin/ziti-edge-tunnel-enroll
ExecStart=/usr/bin/ziti-edge-tunnel run --verbose=${ZITI_VERBOSE} --identity-dir=${ZITI_IDENTITY_DIR}
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target