projects
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
port over more init scripts
[packages.git]
/
sound
/
mt-daapd
/
files
/
mt-daapd.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
4
BIN=mt-daapd
5
DEFAULT=/etc/default/$BIN
6
RUN_D=/var/run
7
PID_F=$RUN_D/$BIN.pid
8
[ -f $DEFAULT ] && . $DEFAULT
9
10
start() {
11
[ -d $RUN_D ] || mkdir -p $RUN_D
12
$BIN $OPTIONS
13
}
14
15
stop() {
16
[ -f $PID_F ] && kill -INT $(cat $PID_F)
17
}
18