Skip to content

Commit ddfba13

Browse files
committed
Add a systemd service unit config template
1 parent e1554d9 commit ddfba13

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

templates/stunnel.init.systemd.erb

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=Stunnel (<%= @name %>)
3+
Documentation=man:stunnel(8)
4+
After=syslog.target network.target
5+
6+
[Service]
7+
Type=forking
8+
GuessMainPID=no
9+
PIDFile=<%= @pid %>
10+
ExecStart=<%= @svc_bin %> <%= @config_file %>
11+
KillMode=process
12+
TimeoutStopSec=2
13+
14+
[Install]
15+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)