deebbf5d99192e47f46f9bb6cd15f8532e098a80
[public/netxms.git] / contrib / startup / gentoo / nxhttpd
1 #!/sbin/runscript
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /cvs/nms/contrib/startup/gentoo/nxhttpd,v 1.1 2006-03-08 09:12:22 victor Exp $
5
6 depend() {
7 need net
8 }
9
10 start() {
11 ebegin "Starting NetXMS web interface"
12 eval start-stop-daemon --start --quiet --pidfile /var/run/nxhttpd.pid --exec /usr/local/bin/nxhttpd -- -d -p /var/run/nxhttpd.pid $OPTS
13 eend $?
14 }
15
16 stop() {
17 ebegin "Stopping NetXMS web interface"
18 start-stop-daemon --stop --quiet --pidfile /var/run/nxhttpd.pid
19 eend $?
20 }