d0234bb70f
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17842 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
296 B
Bash
Executable File
20 lines
296 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
START=50
|
|
|
|
BIN=opensips
|
|
DEFAULT=/etc/default/$BIN
|
|
RUN_D=/var/run
|
|
PID_F=$RUN_D/$BIN.pid
|
|
|
|
start() {
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
|
mkdir -p $RUN_D
|
|
$BIN -P $PID_F $OPTIONS >/dev/null 2>&1
|
|
}
|
|
|
|
stop() {
|
|
[ -f $PID_F ] && kill $(cat $PID_F)
|
|
}
|
|
|