]> review.fuel-infra Code Review - openstack-build/neutron-build.git/blob - debian/neutron-plugin-metering-agent.upstart
Update DEB-specs to 2013.2 version
[openstack-build/neutron-build.git] / debian / neutron-plugin-metering-agent.upstart
1 # vim:set ft=upstart ts=2 et:
2 description "Neutron metering agent"
3 author "Chuck Short <zulcss@ubuntu.com>"
4
5 start on runlevel [2345]
6 stop on runlevel [!2345]
7
8 respawn
9
10 chdir /var/run
11
12 pre-start script
13   mkdir -p /var/run/neutron
14   chown neutron:root /var/run/neutron
15 end script
16
17 exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-metering-agent -- \
18        --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/metering_agent.ini \
19        --log-file=/var/log/neutron/metering_agent.log