service mode
prxpostern opened this issue · comments
prxpostern commented
please give me the systemctl script . i need to run it as service in linux.
thanks
Joe Tsai commented
Systemd scripts are fairly easy to write these days:
[Unit]
StartLimitIntervalSec=5
StartLimitBurst=0
[Service]
ExecStart=/usr/local/udptunnel/udptunnel
WorkingDirectory=/usr/local/udptunnel
User=root
Group=root
Restart=on-failure
[Install]
WantedBy=multi-user.target
prxpostern commented
thanks a lot
…On Fri, Jan 20, 2023, 23:24 Joe Tsai ***@***.***> wrote:
Systemd scripts are fairly easy to write these days:
[Unit]
StartLimitIntervalSec=5
StartLimitBurst=0
[Service]
ExecStart=/usr/local/udptunnel/udptunnel
WorkingDirectory=/usr/local/udptunnel
User=root
Group=root
Restart=on-failure
[Install]
WantedBy=multi-user.target
—
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQWQV5XEPQJOFHGGFFGAELWTLUP7ANCNFSM6AAAAAAUBSX7NY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>