Skip to content

Commit 0c31530

Browse files
committed
add an example systemd service
1 parent 7490778 commit 0c31530

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/kcptun.service

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Description=kcptun
2+
3+
Wants=network.target
4+
After=syslog.target network-online.target
5+
6+
[Service]
7+
Type=simple
8+
Environment=GOGC=20
9+
ExecStart=/home/user/client_linux_amd64 -c /home/user/local.json
10+
Restart=on-failure
11+
RestartSec=10
12+
KillMode=process
13+
LimitNOFILE=65536
14+
15+
[Install]
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)