I've installed stunnel 4.5 on centos 7.6.
sudo yum -y install stunnel
Now i want to stop-start-restart-status stunnel as a service on centos 7.6.
The command below does not work :
systemctl start stunnel
How can i do that?
Take a look at this link = starting_stopping_restarting_stunnel :
The command
stunnel /etc/stunnel/stunnel.conf
Works.
But the command
kill `cat /var/run/stunnel/stunnel.pid`
Does not work.It tells :
cat: /var/run/stunnel/stunnel.pid: No such file or directory
Here is stunnel.conf file that i've created in this path (/etc/stunnel/stunnel.conf).
client = no
[squid]
accept = 1800
connect = 127.0.0.1:8080
cert = /etc/stunnel/stunnel.pem
It works fine.