Changeset 28969


Ignore:
Timestamp:
2011-11-12T02:30:30+01:00 (6 years ago)
Author:
nico
Message:

packages/mpdas: use new service functions

Location:
packages/sound/mpdas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/sound/mpdas/Makefile

    r27710 r28969  
    11# 
    2 # Copyright (C) 2009 OpenWrt.org 
     2# Copyright (C) 2009-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=mpdas 
    1111PKG_VERSION:=0.3.0 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/sound/mpdas/files/mpdas.init

    r25373 r28969  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2009 OpenWrt.org 
     2# Copyright (C) 2009-2011 OpenWrt.org 
     3 
    34START=94 
    45 
     6SERVICE_DAEMONIZE=1 
     7 
    58start() { 
    6         HOME=/root /usr/bin/mpdas -c /etc/mpdasrc & 
     9        HOME=/root \ 
     10        service_start /usr/bin/mpdas -c /etc/mpdasrc 
    711} 
    812 
    913stop() { 
    10         killall mpdas 
     14        service_stop /usr/bin/mpdas 
    1115} 
Note: See TracChangeset for help on using the changeset viewer.