On 12/04/2014 03:52 AM, Thomas Goirand wrote:
Let's see what the release team says.

Thanks Thomas.

Aside from this, I took a look at how they did in Fedora.

Here is their unit file:

[Unit]
Description=OpenStack Identity Service (code-named Keystone)
After=syslog.target network.target

[Service]
Type=notify
Restart=always
User=keystone
ExecStart=/usr/bin/keystone-all --config-file /usr/share/keystone/keystone-dist.conf --config-file /etc/keystone/keystone.conf

[Install]
WantedBy=multi-user.target

So, we can use multiple config files, this allows the same granularity as the /etc/default/* way. They also use the Type=notify clause. Their keystone-dist.conf has the following DEFAULT section:

[DEFAULT]
log_file = /var/log/keystone/keystone.log
onready = keystone.common.systemd

To mimic the current genericity of our init-script, we could use something like

ExecStart=... --config-file /usr/share/keystone/keystone-systemd.conf --config-file /etc/openstack.conf --config-file /etc/keystone/keystone.conf

with the same global section in /usr/share/keystone/keystone-systemd.conf. One can then use /etc/openstack.conf to switch back to syslog or stdout or stderr or whatever she wants globally.

Obviously, this is for post-jessie anyway.

Cheers,
Mikaël.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to