b9408d5a27
Adding theses lines to the systemd .service files will help to order the boot/shutdown process when the database and/or RabbitMQ are running on the same node as the service. Also done: - for glance-api, explicitly call glance-manage with config-dir to be able to add config snippets to /etc/glance/glance-api.conf.d/ - Drop some empty lines in the .service files Change-Id: Id9c36226289304adb7ef2438f6bc2de1dde9e144
18 lines
384 B
Desktop File
18 lines
384 B
Desktop File
[Unit]
|
|
Description=OpenStack Sahara API service
|
|
After=syslog.target network.target
|
|
After=mariadb.service postgresql.service rabbitmq-server.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
User=sahara
|
|
Group=sahara
|
|
WorkingDirectory=/var/lib/sahara
|
|
PrivateTmp=yes
|
|
ExecStartPre=-/usr/bin/sahara-db-manage upgrade head
|
|
ExecStart=/usr/bin/sahara-api
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|