Ignore:
Timestamp:
2011-11-09T20:48:59+01:00 (4 years ago)
Author:
nico
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/admin/osiris/files/osirisd.init

    r15247 r28889  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 BIN=osirisd 
    6 DEFAULT=/etc/default/$BIN 
    7 LIB_D=/var/lib/osiris 
    8 RUN_D=/var/run 
    9 PID_F=$RUN_D/$BIN.pid 
     6SERVICE_USE_PID=1 
    107 
    118start() { 
    12         [ -f $DEFAULT ] && . $DEFAULT 
    13         mkdir -p $LIB_D 
    14         mkdir -p $RUN_D 
    15         $BIN $OPTIONS 
    16 } 
    17 stop() { 
    18         [ -f $PID_F ] && kill $(cat $PID_F) 
     9        mkdir -0755 -p /var/lib/osiris 
     10        service_start /usr/sbin/osirisd 
    1911} 
    2012 
     13stop() { 
     14        service_stop /usr/sbin/osirisd 
     15} 
Note: See TracChangeset for help on using the changeset viewer.