![Fabrice Fontaine](/assets/img/avatar_default.png)
Rygel is a home media solution (UPnP AV MediaServer) that allows you to easily share audio, video and pictures to other devices. Additionally, media player software may use Rygel to become a MediaRenderer that may be controlled remotely by a UPnP or DLNA Controller. Rygel achieves interoperability with other devices in the market by trying to conform to the very strict requirements of DLNA and by converting media on-the-fly to formats that client devices can handle. Most Rygel functionality is implemented through a plug-in mechanism. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Thomas: - use SPDX license codes - add hashes for license files - move Config.in comment at the end of the Config.in file to not break the indentation of the sub-options.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
38 lines
507 B
Bash
38 lines
507 B
Bash
#!/bin/sh
|
|
|
|
NAME=rygel
|
|
PIDFILE=/var/run/$NAME.pid
|
|
DAEMON=/usr/bin/$NAME
|
|
|
|
start() {
|
|
printf "Starting $NAME: "
|
|
start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON
|
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
|
}
|
|
stop() {
|
|
printf "Stopping $NAME: "
|
|
start-stop-daemon -K -q -p $PIDFILE
|
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
|
}
|
|
restart() {
|
|
stop
|
|
start
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart|reload)
|
|
restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|reload}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|