2 # Copyright 1999-2010 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/pnp4nagios/files/npcd,v 1.2 2010/10/20 16:37:27 dertobi123 Exp $
13 ebegin "Starting npcd"
14 start-stop-daemon --start --exec /usr/bin/npcd \
15 -- -f /etc/pnp/npcd.cfg \
17 eend $? "Failed to Start npcd"
21 ebegin "Stopping npcd"
22 start-stop-daemon --stop --quiet -n npcd
23 eend $? "Failed to Stop npcd"
27 ebegin "Reloading npcd"
28 kill -HUP `pgrep npcd`
29 eend $? "Failed to reload npcd"
33 ebegin "Restarting npcd"
36 eend $? "Failed to Restart npcd"