# HIDd

description "HIDd: human input device daemon"
author "Tom Hughes"

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

respawn

console logged

script

if [ -d /dev/cgroup ] ; then
    mkdir -p /dev/cgroup/input
    echo $$ > /dev/cgroup/input/tasks
fi

exec /usr/bin/hidd -v -f /etc/hidd/HidPlugins.xml --output-syslog

end script
