9a34f271f7
The init/systemd scripts support dynamic parameters to be passed to init services, however there is a static --log-file option that was configured to be passed to ALL services using the init templates. For services that are implemented which do not support --log-file parameters this causes a startup failure ie. calico-felix: error: no such option: --log-file This change moves the --log-file parameter into the neutron_services dictionary, allowing the parameter to be passed on a per-service basis. Change-Id: I9e98f730e3d167feb40c2f7e898c10f53041bffd
26 lines
565 B
Django/Jinja
26 lines
565 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=neutron openstack service
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ system_user }}
|
|
Group={{ system_group }}
|
|
|
|
{% if program_override is defined %}
|
|
ExecStart={{ program_override }} {{ program_config_options|default('') }}
|
|
{% else %}
|
|
ExecStart={{ neutron_bin }}/{{ program_name }} {{ program_config_options|default('') }}
|
|
{% endif %}
|
|
|
|
# Give a reasonable amount of time for the server to start up/shut down
|
|
TimeoutSec=300
|
|
Restart=on-failure
|
|
RestartSec=150
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|