NetXMS Support Forum

English Support => General Support => Topic started by: kiki on December 10, 2016, 05:10:38 PM

Title: After Cold Reboots, Dirty Shutdown Netxms Not working
Post by: kiki on December 10, 2016, 05:10:38 PM
After a power failure or dirty shutdown I Have to use run sudo netxmsd-d every time to get it back working. What's the issue?
Title: Re: After Cold Reboots, Dirty Shutdown Netxms Not working
Post by: Victor Kirhenshtein on December 12, 2016, 06:30:14 PM
Hi,

that probably means that you don't have startup script for netxmsd or it is not registered for auto start. You should consult manuals for your OS/distribution on how to enable autostart. IN NetXMS source code ynder contrib/startup you can find startup scripts for various platforms.

Best regards,
Victor
Title: Re: After Cold Reboots, Dirty Shutdown Netxms Not working
Post by: kiki on December 20, 2016, 09:47:49 AM
Start up scripts are there. Like I mentioned, if I perform a clean reboot netxms works properly. Checked log and noted on every dirty shutdown
[ERROR] Unable to establish connection with database (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))

A clean reboot fixes the issue or running netxmsd -d
Title: Re: After Cold Reboots, Dirty Shutdown Netxms Not working
Post by: kiki on December 20, 2016, 09:59:52 PM
Switching to postgres fixed the issue.