packages/net/xinetd/files/xinetd.init

19 lines
280 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
DEFAULT=/etc/default/xinetd
RUN_D=/var/run
PID_F=$RUN_D/xinetd.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
[ -d $RUN_D ] || mkdir -p $RUN_D
xinetd $OPTIONS
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}