Day 53: /var/run/*.pid

09 Aug 2017

Most of daemons you start on a server, create a file in /var/run/.pid, such as: `/var/run/mysqld.pid`, `/var/run/sshd.pid`...

It contains the PID of the running process. (see day-18 https://iadvize.github.io/devops-tip-of-the-day/tips/day-18-ps-command).

This is usefull for 2 reasons:

:bulb: What happens if you force-remove /var/run/nginx.pid file and execute /etc/init.d/nginx stop ?