Skip to content

Instantly share code, notes, and snippets.

@zengxs
Created April 5, 2022 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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/gost@.service
[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