mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-01 11:51:16 +02:00
23 lines
412 B
Plaintext
23 lines
412 B
Plaintext
#!/sbin/runscript
|
|
|
|
name="MiniDLNA"
|
|
configfile="${CONFIG:-/etc/minidlna.conf}"
|
|
start_stop_daemon_args="--user ${M_USER:-minidlna} --group ${M_GROUP:-minidlna}"
|
|
command=/usr/sbin/minidlna
|
|
command_args="-f ${configfile}"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
if ! [ -f "${configfile}" ]; then
|
|
eerror "${configfile} is missing"
|
|
return 1
|
|
fi
|
|
if yesno "${RESCAN}"; then
|
|
command_args="$command_args -R"
|
|
fi
|
|
}
|
|
|