packages/miredo: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28924 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1f73407f58
commit
83d1026e29
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=miredo
|
||||
PKG_VERSION:=1.2.4
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_URL:=http://www.remlab.net/files/miredo
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
|
@ -1,13 +1,14 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
PID_F=/var/run/miredo-server.pid
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
start() {
|
||||
miredo-server
|
||||
service_start /usr/sbin/miredo-server
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
||||
service_stop /usr/sbin/miredo-server
|
||||
}
|
||||
|
@ -1,13 +1,15 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
PID_F=/var/run/miredo.pid
|
||||
# XXX: miredo create a pid file but using it doesn't seem to work
|
||||
#SERVICE_USE_PID=1
|
||||
|
||||
start() {
|
||||
miredo
|
||||
service_start /usr/sbin/miredo
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
||||
service_stop /usr/sbin/miredo
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user