Closed prxpostern closed 1 year ago
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
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 https://github.com/dsnet/udptunnel/issues/10#issuecomment-1398860901, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQWQV5XEPQJOFHGGFFGAELWTLUP7ANCNFSM6AAAAAAUBSX7NY . You are receiving this because you authored the thread.Message ID: @.***>
please give me the systemctl script . i need to run it as service in linux.
thanks