Autostart agent on ubuntu / debian?

Started by krokus57, January 04, 2015, 09:10:10 PM

Previous topic - Next topic

krokus57

Please help to make agents starts on boot in ubuntu.


/usr/local/bin/nxagentd -d
/usr/local/bin/netxmsd -d

I find only solution for freebsd here.

tomaskir

I guess you are compiling from source.
In this case, just copy nxagentd startup script to init and add to auto start.

Do it like this:
cp /netxms_source_dir/contrib/startup/debian/nxagentd.in /etc/init.d/nxagentd
chmod 755 /etc/init.d/nxagentd
update-rc.d nxagentd defaults


Now you can run:
service nxagentd status

It will also be auto-started at boot-time.

riaanjvr

I tried this in the latest version RC1 but does not work in ubuntu 12.04

tomaskir