-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
The pid_dir variable set in data.pp for Debian is:
/Debian/: {
$package = [ 'stunnel4', 'lsb-base' ]
$service = 'stunnel'
$bin_name = 'stunnel4'
$bin_path = '/usr/bin'
$config_dir = '/etc/stunnel'
$pid_dir = '/var/run'
$conf_d_dir = '/etc/stunnel/conf.d'
$cert_dir = '/etc/stunnel/certs'
$log_dir = '/var/log/stunnel4'
$setgid = 'root'
$setuid = 'root'
The /var/run directory is the right place, (although it should be /run now days), but the stunnel4 user that the stunnel runs as is unable to write to that directory a pid file:
May 08 17:23:33 systemd[1]: stunnel-mysqls.service: PID file /var/run/stunnel-mysqls.pid not readable (yet?) after start: No such file or directory
That is because of the permissions of the directory only allows root to write to the directory:
drwxr-xr-x 23 root root 760 May 8 15:27 /run
The debian package 'stunnel4' makes a directory called stunnel4 in /run that is owned by the stunnel4 uid/gid for this pid files:
drwxr-xr-x 2 stunnel4 stunnel4 60 May 8 17:57 /run/stunnel4/
Metadata
Metadata
Assignees
Labels
No labels