From 86cf82cebcc538b9bd254a54dcd1272aca9aea24 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sun, 13 Nov 2011 22:16:19 +0000 Subject: [PATCH] packages/boxbackup: use new service functions SVN-Revision: 29076 --- utils/boxbackup/Makefile | 2 +- utils/boxbackup/files/bbstored.init | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/utils/boxbackup/Makefile b/utils/boxbackup/Makefile index 96a130354..15c2cdb2f 100644 --- a/utils/boxbackup/Makefile +++ b/utils/boxbackup/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=boxbackup PKG_VERSION:=0.11.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=http://www.boxbackup.org/trac/export/2998/box/packages diff --git a/utils/boxbackup/files/bbstored.init b/utils/boxbackup/files/bbstored.init index c7ec58aa6..91e677ec6 100644 --- a/utils/boxbackup/files/bbstored.init +++ b/utils/boxbackup/files/bbstored.init @@ -3,9 +3,6 @@ START=90 - -local NORUN=0 - start() { . /lib/functions/bbstored.sh @@ -13,19 +10,13 @@ start() { if [ "$EXTERNAL_CONFIG" -eq 1 ] then - BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE" + BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE" fi - [ "$NORUN" != "1" ] && /usr/sbin/bbstored "$BXBK_CONFIG_FILE" + service_start /usr/sbin/bbstored "$BXBK_CONFIG_FILE" } stop() { . /lib/functions/bbstored.sh - if [ -f "$PID_FILE" ] - then - kill $(cat "$PID_FILE") - else - killall bbstored - fi + service_stop /usr/sbin/bbstored } - -- 2.30.2