Changeset 29073


Ignore:
Timestamp:
2011-11-13T23:16:14+01:00 (6 years ago)
Author:
nico
Message:

packages/netatalk: use new service functions

Location:
packages/net/netatalk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/netatalk/Makefile

    r28593 r29073  
    1010PKG_NAME:=netatalk 
    1111PKG_VERSION:=2.2.1 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/net/netatalk/files/afpd.init

    r22400 r29073  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    23 
    34START=70 
    45 
    56MAXCONS="7" 
    6 CONFIGFILE="/etc/netatalk/afpd.conf" 
    7 PIDFILE="/var/run/afpd.pid" 
    87 
    98start() 
    109{ 
    11         /usr/sbin/cnid_metad 
    12         /usr/sbin/afpd -F ${CONFIGFILE} -P ${PIDFILE} -c ${MAXCONS} 
     10        service_start /usr/sbin/cnid_metad 
     11        service_start /usr/sbin/afpd -c ${MAXCONS} 
    1312} 
    1413 
    1514stop() 
    1615{ 
    17         kill `cat "${PIDFILE}"` 
    18         killall cnid_metad 
     16        service_stop /usr/sbin/afpd 
     17        service_stop /usr/sbin/cnid_metad 
    1918} 
    2019 
    2120reload() 
    2221{ 
    23         kill -s HUP `cat "${PIDFILE}"` 
     22        service_relaod /usr/sbin/afpd 
    2423} 
Note: See TracChangeset for help on using the changeset viewer.