Skip to content

Instantly share code, notes, and snippets.

@vjyanand
Created January 30, 2023 11:17
Show Gist options
  • Save vjyanand/1c0b07df1aa84850be16908c3cb7e345 to your computer and use it in GitHub Desktop.
Save vjyanand/1c0b07df1aa84850be16908c3cb7e345 to your computer and use it in GitHub Desktop.
[Unit]
Description=Rathole Service
After=network.target
[Service]
Type=simple
User=ec-user
Restart=on-failure
RestartSec=5s
ExecStart=/home/ec-user/rathole /home/ec-user/server.toml
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment