Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
476 B

#!/bin/sh
PIDFILE=/var/run/minidlna/minidlna.pid
case "$1" in
start)
/usr/sbin/minidlnad
;;
stop)
[ -f $PIDFILE ] && kill -TERM `cat $PIDFILE`
rm -f $PIDFILE
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
if [ -f $PIDFILE ] && kill -0 `cat $PIDFILE` ; then
echo "MiniDLNA is running"
else
echo "MiniDLNA is not running"
fi
;;
*)
echo "usage: $0 {start|stop|restart|status}"
exit 1
;;
esac