.pid file

pid file to process the file, the default is generated in each of the / var / run / directory, when carried out using systemctl process starts, in this directory will generate the corresponding pid file, poc test today during the time of process does enable simultaneous operation with the system let him start also start, but after each system restart process will not start.

Then created under poc path to a new / run directory, this directory needs to be owned authorization, chown username: xx / xx / run the only way to use in the configuration file related processes, specify pidfile path for the newly created directories, directory after you've made changes, we need to reload process configuration file systemctl demon-reload, and then start making process, and start with the system enable operation.

Guess you like

Origin www.cnblogs.com/0916m/p/11484422.html