Solaris packaing fixed
[public/netxms.git] / packages / freebsd / files / nxhttpd.in
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # PROVIDE: nxhttpd
6 # REQUIRE: LOGIN
7 # KEYWORD: shutdown
8 #
9 #
10 # Add the following line to /etc/rc.conf[.local] to enable nxhttpd
11 #
12 # nxhttpd_enable (bool): Set to "NO" by default.
13 # Set it to "YES" to enable nxagentd.
14 #
15
16 . %%RC_SUBR%%
17
18 name="nxhttpd"
19 nxhttpd_user="netxms"
20 rcvar=${name}_enable
21
22 load_rc_config $name
23
24 : ${nxhttpd_enable="NO"}
25
26 command="%%PREFIX%%/bin/nxhttpd"
27 required_files="%%PREFIX%%/etc/nxhttpd.conf"
28 command_args="-c %%PREFIX%%/etc/nxhttpd.conf -d"
29
30 run_rc_command "$1"