dsnet / udptunnel

Daemon for creating a simple VPN over UDP.
BSD 3-Clause "New" or "Revised" License
172 stars 31 forks source link

service mode #10

Closed prxpostern closed 1 year ago

prxpostern commented 1 year ago

please give me the systemctl script . i need to run it as service in linux.

thanks

dsnet commented 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
prxpostern commented 1 year ago

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: @.***>