

I don't why it gives the error that it can't create the directory (apparently because it exists) but it is not ! Also, why is it failing to read the certificate ? Why running manually it works. Subject: Unit rvice has failedįeb 20 19:26:08 otrs1 systemd: Unit rvice entered failed state.įeb 20 19:26:08 otrs1 systemd: rvice failed. The error number returned by this process is 2.įeb 20 19:26:08 otrs1 stunnel: Clients allowed=500įeb 20 19:26:08 otrs1 stunnel: stunnel 4.56 on x86_64-redhat-linux-gnu platformįeb 20 19:26:08 otrs1 stunnel: Compiled/running with OpenSSL 1.0.1e-fips įeb 20 19:26:08 otrs1 stunnel: Threading:PTHREAD Sockets:POLL,IPv6 SSL:ENGINE,OCSP,FIPS Auth:LIBWRAPįeb 20 19:26:08 otrs1 stunnel: Reading configuration from file /etc/stunnel/nfįeb 20 19:26:08 otrs1 stunnel: FIPS mode is enabledįeb 20 19:26:08 otrs1 stunnel: Compression not enabledįeb 20 19:26:08 otrs1 stunnel: PRNG seeded successfullyįeb 20 19:26:08 otrs1 stunnel: Initializing service įeb 20 19:26:08 otrs1 stunnel: Certificate: /etc/pki/tls/certs/stunnel.pemįeb 20 19:26:08 otrs1 stunnel: Error reading certificate file: /etc/pki/tls/certs/stunnel.pemįeb 20 19:26:08 otrs1 stunnel: error queue: 140DC002: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system libįeb 20 19:26:08 otrs1 stunnel: error queue: 20074002: error:20074002:BIO routines:FILE_CTRL:system libįeb 20 19:26:08 otrs1 stunnel: SSL_CTX_use_certificate_chain_file: 200100D: error:0200100D:system library:fopen:Permission deniedįeb 20 19:26:08 otrs1 stunnel: Service : Failed to initialize SSL contextįeb 20 19:26:08 otrs1 stunnel: str_stats: 12 block(s), 1050 data byte(s), 696 control byte(s)įeb 20 19:26:08 otrs1 polkitd: Unregistered Authentication Agent for unix-process:14179:2643087 (system bus name :1.62, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)įeb 20 19:26:08 otrs1 systemd: rvice: control process exited, code=exited status=1įeb 20 19:26:08 otrs1 systemd: Failed to start rvice. The process /user/bin/chown could not be executed and failed. Subject: Process /user/bin/chown could not be executed Unit rvice has begun starting up.įeb 20 19:26:07 otrs1 mkdir: /usr/bin/mkdir: cannot create directory ‘/var/run/stunnel’: File existsįeb 20 19:26:07 otrs1 systemd: Failed at step EXEC spawning /user/bin/chown: No such file or directory See "systemctl status rvice" and "journalctl -xe" for details.Įxecuting journalctl -xe: Feb 20 19:26:07 otrs1 polkitd: Registered Authentication Agent for unix-process:14179:2643087 (system bus name :1.62, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locįeb 20 19:26:07 otrs1 systemd: Starting rvice. When I try to start it systemctl start rvice it fails with Job for rvice failed because the control process exited with error code. Description=SSL tunnel for network daemonsĮxecStartPre=-/usr/bin/mkdir /var/run/stunnelĮxecStartPre=-/user/bin/chown nobody:nobody /var/run/stunnelĮxecStart=/bin/stunnel /etc/stunnel/nf Here's my systemd unit file for stunnel: When I execute stunnel /etc/stunnel/nf then it works. #change the UID and GID of the process for security reasons
Stunnel configuration full#
My nf is this: #Provide the full path to your certificate-key pair file I'd like to create a unit file for stunneland I can't figure out why it's failing.
