SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
-[ -x /usr/sbin/koha-start-zebra ] || exit 0
+[ -x /usr/sbin/koha-zebra ] || exit 0
# Read configuration variable file if it is present
if [ -r /etc/default/$NAME ]; then
{
# We insure all required directories exist, including disabled ones.
koha-create-dirs $(koha-list)
- koha-start-zebra $(koha-list --enabled)
+ koha-zebra --start $(koha-list --enabled)
koha-start-sip $(koha-list --enabled)
koha-plack --start $(koha-list --enabled --plack)
do_stop()
{
# We stop everything, including disabled ones.
- koha-stop-zebra $(koha-list) || true
+ koha-zebra --stop $(koha-list) || true
koha-stop-sip $(koha-list) || true
koha-plack --stop --quiet $(koha-list --enabled --plack)
# Function that sends a SIGHUP to the daemon/service
#
do_reload() {
- koha-restart-zebra $(koha-list --enabled)
+ koha-zebra --restart $(koha-list --enabled)
koha-stop-sip $(koha-list) || true
koha-start-sip $(koha-list --enabled)
koha-plack --restart --quiet $(koha-list --enabled --plack)
notifempty
sharedscripts
prerotate
- /usr/sbin/koha-stop-zebra $(koha-list --enabled) > /dev/null
+ /usr/sbin/koha-zebra --stop $(koha-list --enabled) > /dev/null
/usr/sbin/koha-plack --stop --quiet $(koha-list --enabled --plack) > /dev/null
endscript
postrotate
/etc/init.d/apache2 reload > /dev/null
/usr/sbin/koha-plack --start --quiet $(koha-list --enabled --plack) > /dev/null
- /usr/sbin/koha-start-zebra $(koha-list --enabled) > /dev/null
+ /usr/sbin/koha-zebra --start $(koha-list --enabled) > /dev/null
endscript
}
# Stop the Zebra server if needed
if is_zebra_running $name; then
- koha-stop-zebra $name || /bin/true
+ koha-zebra --stop $name || /bin/true
fi
# Stop the indexer daemon if needed
if is_indexer_running $name; then