1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

F OpenNebula/one#5178: Add stunnel service ()

Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
This commit is contained in:
Petr Ospalý 2020-11-26 17:21:38 +01:00 committed by GitHub
parent f895b87b3e
commit c65a119a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions
share/pkgs/services/supervisor/centos8
scripts
supervisord.d

View 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

View File

@ -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