~ethuleau/nova/lp890612

« back to all changes in this revision

Viewing changes to debian/nova-objectstore.upstart.in

  • Committer: Dave Walker (Daviey)
  • Author(s): Thierry Carrez (ttx)
  • Date: 2011-08-23 13:25:33 UTC
  • mfrom: (174.1.2 lp820968)
  • Revision ID: davewalker@ubuntu.com-20110823132533-thhgeg5vpii2wa4z
No longer run nova-objectstore as root (LP: #820968)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        chown nova:root /var/lock/nova/
15
15
end script
16
16
 
17
 
script
18
 
    PIDFILE=/var/run/nova/nova-objectstore.pid
19
 
    uid="$(getent passwd nova | cut -f3 -d:)"
20
 
    gid="$(getent passwd nova | cut -f4 -d:)"
21
 
    nova-objectstore --uid $uid --gid $gid --pidfile $PIDFILE --flagfile=/etc/nova/nova.conf --nodaemon --logfile=/var/log/nova/nova-objectstore.log
22
 
end script
 
17
exec su -c "nova-objectstore --flagfile=/etc/nova/nova.conf" nova