Skip to content

Instantly share code, notes, and snippets.

@zengxs
Created April 5, 2022 16:22
Show Gist options
  • Save zengxs/67cc0d1e3ec37b64ffe689189816500a to your computer and use it in GitHub Desktop.
Save zengxs/67cc0d1e3ec37b64ffe689189816500a to your computer and use it in GitHub Desktop.
# /etc/systemd/system/[email protected]
[Unit]
Description=GO Simple Tunnel - %i
After=network.target
[Service]
Type=simple
User=nobody
Group=nogroup
ExecStart=/usr/local/bin/gost -C /etc/gost/%i.json
ExecStop=/bin/kill -- $MAINPID
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment