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