mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
F OpenNebula/one#5178: Add stunnel service (#481)
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
This commit is contained in:
parent
f895b87b3e
commit
c65a119a2e
share/pkgs/services/supervisor/centos8
16
share/pkgs/services/supervisor/centos8/scripts/stunnel.sh
Executable file
16
share/pkgs/services/supervisor/centos8/scripts/stunnel.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
#
|
||||
# functions
|
||||
#
|
||||
|
||||
. /usr/share/one/supervisor/scripts/lib/functions.sh
|
||||
|
||||
#
|
||||
# run service
|
||||
#
|
||||
|
||||
msg "Service started!"
|
||||
exec /usr/bin/stunnel /etc/stunnel/stunnel.conf
|
@ -0,0 +1,9 @@
|
||||
[program:stunnel]
|
||||
command=/usr/share/one/supervisor/scripts/stunnel.sh
|
||||
directory=/tmp
|
||||
priority=100
|
||||
autorestart=true
|
||||
startsecs=5
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
redirect_stderr=true
|
Loading…
Reference in New Issue
Block a user