Skip to content
Snippets Groups Projects
Verified Commit e19284ef authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Ensure services always run

parent 1f5792f4
No related branches found
No related tags found
No related merge requests found
[Service]
Restart=always
...@@ -31,6 +31,17 @@ ...@@ -31,6 +31,17 @@
- journal-remote - journal-remote
- config - config
- name: Ensure systemd-journal-remote always runs
copy:
dest: /etc/systemd/system/systemd-journal-remote.service.d/restart.conf
src: restart.conf
notify:
- Reload systemd
- Restart systemd-journal-remote
tags:
- journal-remote
- config
- name: Ensure journal-remote directory is present - name: Ensure journal-remote directory is present
file: file:
path: /var/log/journal/remote path: /var/log/journal/remote
......
[Service]
Restart=always
- name: Reload systemd
systemd: daemon-reload=yes
- name: Restart systemd-journal-upload - name: Restart systemd-journal-upload
systemd: name=systemd-journal-upload state=restarted systemd: name=systemd-journal-upload state=restarted
...@@ -19,6 +19,25 @@ ...@@ -19,6 +19,25 @@
- journal-upload - journal-upload
- config - config
- name: Ensure presence of unit drop-in config directory
file:
path: /etc/systemd/system/systemd-journal-upload.service.d
state: directory
tags:
- journal-upload
- config
- name: Ensure systemd-journal-upload always runs
copy:
dest: /etc/systemd/system/systemd-journal-upload.service.d/restart.conf
src: restart.conf
notify:
- Reload systemd
- Restart systemd-journal-upload
tags:
- journal-upload
- config
- name: Enable journal-upload service - name: Enable journal-upload service
systemd: systemd:
name: systemd-journal-upload.service name: systemd-journal-upload.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment