packages/osiris: use new service functions, set /var/lib/osiris perms

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28889 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-09 19:48:59 +00:00
parent bb682f1ed3
commit 365221c40b
2 changed files with 10 additions and 15 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=osiris
PKG_VERSION:=4.2.3
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://osiris.shmoo.com/data/

View File

@ -1,20 +1,15 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006-2011 OpenWrt.org
START=50
BIN=osirisd
DEFAULT=/etc/default/$BIN
LIB_D=/var/lib/osiris
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
SERVICE_USE_PID=1
start() {
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $LIB_D
mkdir -p $RUN_D
$BIN $OPTIONS
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
mkdir -0755 -p /var/lib/osiris
service_start /usr/sbin/osirisd
}
stop() {
service_stop /usr/sbin/osirisd
}