Author Topic: Netxmsd and Nxagentd does not auto start Centos7  (Read 2373 times)

Smurfy

  • Newbie
  • *
  • Posts: 4
    • View Profile
Netxmsd and Nxagentd does not auto start Centos7
« on: March 05, 2017, 02:44:02 pm »
Hi all,

any idea how to make it autostart everytime Server reboots?

I believe have to use systemctl and service file right? how do I do it?

thanks!

Tatjana Dubrovica

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 268
    • View Profile
Re: Netxmsd and Nxagentd does not auto start Centos7
« Reply #1 on: March 06, 2017, 07:12:28 pm »
Hi you should add init.d scripts to your system. I have attached examples for centOS.

In those file you should set correctly:
$NETXMS_BINDIR
$NETXMS_LIBDIR
$NETXMSD_CONFIG
$NETXMSD_PID_FILE

Malutki_27

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Netxmsd and Nxagentd does not auto start Centos7
« Reply #2 on: May 30, 2017, 12:53:02 am »
or you can use :

file location: /etc/systemd/system/netxms-server.service

Code: [Select]
[Unit]
Description=NetXMS Monitoring Server

[Service]
Type=forking
ExecStart=/usr/local/bin/netxmsd -d
Wants = mariadb.service

[Install]
WantedBy=multi-user.target

and:

file location: /etc/systemd/system/netxms-agent.service

Code: [Select]
[Unit]
Description=NetXMS Monitoring Agent

[Service]
Type=forking
ExecStart=/usr/local/bin/nxagentd -d

[Install]
WantedBy=multi-user.target

and after:

systemctl enable netxms-server
systemctl enable netxms-agent
systemctl start netxms-server
systemctl start netxms-agent