Cannot restart CE in Ubuntu Bionic
When installing
nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb
on
5.0.0-31-generic #33~18.04.1-Ubuntu
I cannot restart the service, an old process seems alive after stopping...
manuel@portatil-ubuntu:~$ nxlog -h | head -1 nxlog-ce-2.10.2150
manuel@portatil-ubuntu:~$ sudo systemctl restart nxlog.service Job for nxlog.service failed because the control process exited with error code. See "systemctl status nxlog.service" and "journalctl -xe" for details.
manuel@portatil-ubuntu:~$ journalctl -xe | grep pid | tail -1 oct 15 12:45:43 portatil-ubuntu.mmunoz.priv nxlog[32586]: 2019-10-15 12:45:43 ERROR Another instance is already > > running (pid 31565);Resource temporarily unavailable
manuel@portatil-ubuntu:~$ sudo netstat -pan | grep nxlog | head -1 tcp 0 0 127.0.0.1:514 0.0.0.0:* ESCUCHAR 28454/nxlog`
Killing and restarting...
manuel@portatil-ubuntu:~$ sudo kill 31565 manuel@portatil-ubuntu:~$ sudo systemctl start nxlog.service manuel@portatil-ubuntu:~$