#!/bin/sh
/usr/bin/upnpAVServer_stop
echo "starting" > /tmp/UPnPAVServer_launchd.log
$1launchctl submit  -l de.adoubleu.upnpAVServer -p /usr/bin/upnpAVServerd -o /tmp/UPnPAVServer_launchd.log -e /tmp/UPnPAVServer_launchd.log -- UPnPAVServer -f "$HOSTNAME-UPnPAVServer" -p 8080 -l `cat /private/etc/upnpAVServer.license` 
