faaf51e7ba
systemd is used instead of upstart by default since Ubuntu 15.10 (Wily). This adds systemd init file support for nova services that are deployed from source. Change-Id: I7d031e86853a3fb8b91501dc6bbd7f5f1b67701d
18 lines
446 B
SYSTEMD
18 lines
446 B
SYSTEMD
[Unit]
|
|
Description=OpenStack Neutron OVS cleanup
|
|
|
|
[Service]
|
|
type=oneshot
|
|
User=neutron
|
|
Group=neutron
|
|
WorkingDirectory=/var/lib/neutron
|
|
PermissionsStartOnly=true
|
|
ExecStartPre=/bin/mkdir -p /var/lock/neutron /var/log/neutron /var/lib/neutron
|
|
ExecStartPre=/bin/chown neutron:neutron /var/lock/neutron /var/log/neutron /var/lib/neutron
|
|
ExecStart=/etc/init.d/neutron-ovs-cleanup systemd-start
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|