Line 0
Link Here
|
0 |
- |
1 |
#!/bin/sh |
|
|
2 |
# |
3 |
# koha_zebra - basic rc.d script for koha |
4 |
# Copyright 2010 Jared Camins-Esakov |
5 |
# |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
# the Free Software Foundation, either version 3 of the License, or |
9 |
# (at your option) any later version. |
10 |
# |
11 |
# This program is distributed in the hope that it will be useful, |
12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
# GNU General Public License for more details. |
15 |
# |
16 |
# You should have received a copy of the GNU General Public License |
17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 |
|
19 |
# PROVIDE: koha_zebra |
20 |
# REQUIRE: LOGIN |
21 |
# KEYWORD: shutdown |
22 |
|
23 |
. /etc/rc.subr |
24 |
|
25 |
name="koha_zebra" |
26 |
rcvar=`set_rcvar` |
27 |
|
28 |
load_rc_config $name |
29 |
|
30 |
: ${koha_zebra_enable:=NO} |
31 |
: ${koha_zebra_flags:=""} |
32 |
|
33 |
command="/usr/sbin/daemon" |
34 |
command_args="-u ${koha_zebra_user} \ |
35 |
zebrasrv \ |
36 |
-v none,fatal,warn \ |
37 |
-f \"/home/${koha_zebra_user}/koha-dev/etc/koha-conf.xml\"" |
38 |
|
39 |
run_rc_command "$1" |