Press "Enter" to skip to content

Tag: netdisco 2

Netdisco 2 Service Startup Script Centos/Redhat

I have been trying out the new package of Netdsico 2 from and I must say im quite impressed by the new version, it has a new interface and its quite smooth to operate. Everything is bundled inside the package and deployed part as of CPAN. Its quite a bit different than Netdisco 1 in terms of installing and configuring, and it is bit easier to work with.

One of the things which I needed was a startup script to start the netdisco-daemon and netdisco-web service on Red Hat / Centos, so I built a custom service to operate it.

Simply download netdisco-web  and netdisco-daemon files , remove the .txt extension, and drop them into /etc/init.d on your redhat/centos system using WinSCP or similar.

Once the files are in there add execute privilege, go into /etc/init.d using terminal

[[email protected] init.d]# chmod +x netdisco-daemon 
[[email protected] init.d]# chmod +x netdisco-web

Then add the files as part of the startup process

[[email protected] init.d]# chkconfig --add netdisco-daemon 
[[email protected] init.d]# chkconfig --add netdisco-web 
[[email protected] init.d]# chkconfig netdisco-daemon on --level 2345 
[[email protected] init.d]# chkconfig netdisco-web on --level 2345

Lets check the startup run levels, looks good

[[email protected] init.d]# chkconfig --list | grep netdisco
netdisco-daemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off 
netdisco-web 0:off 1:off 2:on 3:on 4:on 5:on 6:off


Now lets check the service


[[email protected] init.d]# service netdisco-web start Netdisco Web [Started] 
[[email protected] init.d]# config watcher: watching /home/netdisco/environments for updates. 
[[email protected] init.d]# service netdisco-daemon start Netdisco Daemon [Started]
 config watcher: watching /home/netdisco/environments for updates.

We can see it is working well.

We can then pass the “help” parameter what the service offers

[[email protected] init.d]# service netdisco-daemon help Usage: {start|stop|restart|status|help} 
[[email protected] init.d]# service netdisco-web help Usage: {start|stop|restart|status|help}

I finally have my netdisco 2 service operational and working well. The bootup scripts have been made so that it allows postgresql to startup first which netdisco relies on, then the daemon and then finally the web.

I haven’t tested on other linux platforms, but i’m sure it will be operational as well with possibly a few tweaks. Hopefully it will assist you too.

Leave a Comment