Skip to content

Instantly share code, notes, and snippets.

@Jalle19
Created December 18, 2021 15:27
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 Jalle19/60532513bbcec2fa630a9d8b576d91e3 to your computer and use it in GitHub Desktop.
Save Jalle19/60532513bbcec2fa630a9d8b576d91e3 to your computer and use it in GitHub Desktop.
stunnel systemd service
[Unit]
Description=stunnel
After=network.target
Requires=network.target
[Service]
Type=simple
# NOTE: "foreground = yes" must be added to the configuration file
ExecStart=/usr/local/bin/stunnel /etc/stunnel/stunnel.conf
TimeoutStopSec=5
Restart=always
RestartSec=5
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment