NetXMS Support Forum

English Support => General Support => Topic started by: krokus57 on January 04, 2015, 09:10:10 PM

Title: Autostart agent on ubuntu / debian?
Post by: krokus57 on January 04, 2015, 09:10:10 PM
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.
Title: Re: Autostart agent on ubuntu / debian?
Post by: tomaskir on January 04, 2015, 09:24:49 PM
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.
Title: Re: Autostart agent on ubuntu / debian?
Post by: riaanjvr on October 07, 2015, 03:48:37 PM
I tried this in the latest version RC1 but does not work in ubuntu 12.04
Title: Re: Autostart agent on ubuntu / debian?
Post by: tomaskir on October 07, 2015, 04:04:55 PM
What exactly does not work?