[PKG-Openstack-devel] systemd support for OpenStack

Thomas Goirand zigo at debian.org
Sun Jul 13 04:02:47 UTC 2014


On 07/13/2014 07:24 AM, gustavo panizzo <gfa> wrote:
> i think the chose of syslog or log-file should be part of config file
> (nova.conf)
> 
> 
> [ "x$USE_SYSLOG" = "xyes" ] && DAEMON_ARGS="$DAEMON_ARGS --use-syslog"
> [ "x$USE_LOGFILE" != "xno" ] && DAEMON_ARGS="$DAEMON_ARGS --log-file
> /var/log/nova/$NAME.log"

No, it can't. Because all daemons are sharing the same configuration
file, then if we do what you say, you wouldn't be able to configure
daemons individually (and for example, have a different log file for
each daemon).

>> The replies to my mail to the systemd guys on their list were not
>> helpful at all, they keep saying that I should just edit the .service
>> file to select the type of logging, but that's not at all what I want. I
>> would like to use /etc/default, just as before. Do you have any idea how
>> we can script this? 
> i think we could use  ExecStartPre, i will check further on Monday

Thanks, let me know.

>> Maybe we'd have to write a wrapper and start that
>> instead of the daemon?
> ugly...

Agreed.

> other vars can be parsed from /etc/default/$NAME
> 
> EnvironmentFile=-/etc/default/$NAME
> ExecStart=/usr/bin/keystone-all $OPTS
> 
> i will check ExecStartPre and get back to the list

Cool, will wait for your answer.

Thomas




More information about the Openstack-devel mailing list