]> Cypherpunks.ru repositories - nncp.git/blob - ports/nncp/files/nncp-caller.in
0ab5492d02d7bd1e9f59a4505a511c3c8bace07c
[nncp.git] / ports / nncp / files / nncp-caller.in
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # PROVIDE: nncp-caller
6 # REQUIRE: DAEMON NETWORKING FILESYSTEMS
7 # KEYWORD: shutdown
8 #
9 # Add these lines to /etc/rc.conf.local or /etc/rc.conf
10 # to enable this service:
11 #
12 # nncp_caller_enable (bool):    Set to NO by default.
13 #                               Set it to YES to enable nncp-caller.
14 # nncp_caller_config (path):    Set to %%PREFIX%%/etc/nncp.hjson by default.
15
16 . /etc/rc.subr
17
18 name=nncp_caller
19 rcvar=nncp_caller_enable
20
21 load_rc_config $name
22
23 : ${nncp_caller_enable:="NO"}
24 : ${nncp_caller_config="%%PREFIX%%/etc/nncp.hjson"}
25
26 command=%%PREFIX%%/bin/nncp-caller
27 command_args="-quiet -cfg $nncp_caller_config &"
28
29 run_rc_command "$1"