summaryrefslogtreecommitdiffstats
path: root/misc/yaunc/files/yaunc.sh.in
blob: 78ea4f14b922c6d4a626663f8faee6a32ed9f9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

#PROVIDE: yaunc
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# yaunc_enable (bool):   Set to NO by default.
#               Set it to YES to enable yaunc.
# yaunc_config (path):   Set to %%PREFIX%%/etc/yaunc.conf
#               by default.
#

. %%RC_SUBR%%

name="yaunc"
rcvar=${name}_enable

command=%%PREFIX%%/bin/${name}

load_rc_config $name

: ${yaunc_enable="NO"}
: ${yaunc_config="%%PREFIX%%/etc/yaunc.conf"}

command_args="-f $yaunc_config"

run_rc_command "$1"
OpenPOWER on IntegriCloud