Ticket #7832: upstart_script_improvement.diff

File upstart_script_improvement.diff, 652 bytes (added by superm1@…, 11 years ago)
  • contrib/Linux/init_scripts/upstart.mythtv-backend.conf

     
    1111
    1212script
    1313        USER=mythtv
    14         ARGS="--logfile /var/log/mythtv/mythbackend.log"
     14        ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
    1515        test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
    16         exec /bin/su -c "/usr/bin/mythbackend $ARGS" $USER
     16        /usr/bin/mythbackend $ARGS
    1717end script