# PmMediaServerApp
#

description	"MediaServer daemon"

start on stopped finish

# Stop when the Software Update tool is about to install an update.  The tool
# uses upstart to restart jobs when the installation is complete.
stop on started start_update

console output

exec ionice -c1 /usr/bin/mediaserver --gst-debug=1
respawn

# Change the respawn properties to prevent the server being stopped too easily
# The default stop criteria are 10 times in 5 seconds.  Upping this to 100 times
# in 1 second.
# respawn limit 100 1
