Skip to content

Instantly share code, notes, and snippets.

@ghostzero
Last active September 14, 2021 11:35
Show Gist options
  • Select an option

  • Save ghostzero/883620e7705d69f616c8a9c894e906c4 to your computer and use it in GitHub Desktop.

Select an option

Save ghostzero/883620e7705d69f616c8a9c894e906c4 to your computer and use it in GitHub Desktop.
cat <<EOF > /lib/systemd/system/[email protected]
[Unit]
Description=Fast and Secure Tunnelling Daemon (connection %I)
After=network.target
[Service]
Type=notify
ExecStart=/usr/local/bin/fastd --syslog-level info --syslog-ident fastd@%I -c /etc/fastd/%I/fastd.conf
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment