charm-neutron-gateway/templates/git/neutron-linuxbridge-agent.service.in
Corey Bryant 21b20ccf14 Add systemd init support for deploy from source
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: I784e6b9908222995c56c9f3c06cc54f0254d4761
2016-07-07 11:00:30 +01:00

20 lines
588 B
SYSTEMD

[Unit]
Description=Openstack Neutron Linux Bridge Agent
After=mysql.service postgresql.service rabbitmq-server.service keystone.service
Requires=neutron-linuxbridge-cleanup.service
[Service]
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-linuxbridge-agent systemd-start
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target