mirror of
https://github.com/fosrl/newt.git
synced 2026-03-08 23:03:03 -05:00
Newt binary does not run in background when executed from cli #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @basher83 on GitHub (Feb 11, 2025).
I looked through the repo and didn't see this mentioned. Basically what the title says.
Steps to reproduce:
On host:
Results in the cli being taken hostage. I tried & at the end with no luck, I then turned to tmux and that works but then I remembered systemd!
Did a simple:
[Unit]
Description=Newt VPN Client
After=network.target
[Service]
ExecStart=/usr/local/bin/newt --id your_id --secret your_secret --endpoint https://pangolin.your_endpoint
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Best solution I could come up with. Maybe no one else has this issue or simply no one runs the binary but in either case hope this can help someone out in the future
@oschwartz10612 commented on GitHub (Feb 11, 2025):
I added this to the readme! Thanks!
@basher83 commented on GitHub (Feb 11, 2025):
Absolutely! I actually took this one step further with a quick bash script: