Hello! Centos 7
The problem is this: If I write in the console:
/opt/dklab_realplexor/dklab_realplexor.int start Everything is OK, the service starts. If I create a service file and do this:
systemctl start realplexor then the service falls into error (it doesn’t write to where) and a PID file is not created Tell me, what could it be? Inside dklab_realplexor.int run the perl script with parameters.
cd $CWD && $BIN $CONF -p $PIDFILE 2>&1 | logger -p `eval "echo $LOGPRI"` -t `eval "echo $LOGTAG"` & Full service file:
[Unit] Description=realplexor [Service] Type=forking PIDFile=/var/run/dklab_realplexor_dklab_realplexor.conf.pid WorkingDirectory=/opt/dklab_realplexor User=root Group=root Environment=RACK_ENV=production OOMScoreAdjust=-1000 ExecStart=/opt/dklab_realplexor/dklab_realplexor.int start ExecStop=/opt/dklab_realplexor/dklab_realplexor.int stop ExecReload=/opt/dklab_realplexor/dklab_realplexor.int reload TimeoutSec=5000 [Install] WantedBy=multi-user.target Tell me, please, which way to dig?