Changeset 28924


Ignore:
Timestamp:
2011-11-10T00:49:17+01:00 (6 years ago)
Author:
nico
Message:

packages/miredo: use new service functions

Location:
packages/ipv6/miredo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/miredo/Makefile

    r27632 r28924  
    1010PKG_NAME:=miredo 
    1111PKG_VERSION:=1.2.4 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE_URL:=http://www.remlab.net/files/miredo 
  • packages/ipv6/miredo/files/miredo-server.init

    r22639 r28924  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 PID_F=/var/run/miredo-server.pid 
     6SERVICE_USE_PID=1 
    67 
    78start() { 
    8         miredo-server 
     9        service_start /usr/sbin/miredo-server 
    910} 
    1011 
    1112stop() { 
    12         [ -f $PID_F ] && kill $(cat $PID_F) 
     13        service_stop /usr/sbin/miredo-server 
    1314} 
  • packages/ipv6/miredo/files/miredo.init

    r22639 r28924  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 PID_F=/var/run/miredo.pid 
     6# XXX: miredo create a pid file but using it doesn't seem to work 
     7#SERVICE_USE_PID=1 
    68 
    79start() { 
    8         miredo 
     10        service_start /usr/sbin/miredo 
    911} 
    1012 
    1113stop() { 
    12         [ -f $PID_F ] && kill $(cat $PID_F) 
     14        service_stop /usr/sbin/miredo 
    1315} 
Note: See TracChangeset for help on using the changeset viewer.