bodhi: Use the new way to configure systemd units
systemd has been emitting a warning about how the include directive is deprecated. This commit switches Bodhi's systemd override unit file to use the new way. Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
7f5309cf05
commit
5104ab0d04
2 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
||||||
.include /usr/lib/systemd/system/fm-consumer@.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User = apache
|
User = apache
|
||||||
Group = apache
|
Group = apache
|
||||||
|
|
|
@ -247,10 +247,21 @@
|
||||||
tags:
|
tags:
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
- name: Create /etc/systemd/system/fm-consumer@.service.d
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: /etc/systemd/system/fm-consumer@.service.d
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
tags:
|
||||||
|
- bodhi
|
||||||
|
- config
|
||||||
|
|
||||||
- name: Configure fm-consumer@.service to run as apache
|
- name: Configure fm-consumer@.service to run as apache
|
||||||
copy:
|
copy:
|
||||||
src: fm-consumer@.service
|
src: fm-consumer@.service
|
||||||
dest: /etc/systemd/system/fm-consumer@.service
|
dest: /etc/systemd/system/fm-consumer@.service.d/local.conf
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue