Fix the systemd service name.

This commit is contained in:
Andrea Dell'Amico 2023-02-10 13:07:19 +01:00
parent faf37c90a8
commit 8c080c2e3e
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
---
- name: restart influxdb
service:
name: influxdb
name: influxd
state: restarted
enabled: true

View File

@ -126,7 +126,7 @@
block:
- name: Ensure that influxdb is enabled and running
service:
name: influxdb
name: influxd
state: started
enabled: true

View File

@ -28,7 +28,7 @@ chown root ${INFLUXDB_KEYFILE}
chgrp influxdb ${INFLUXDB_KEYFILE}
logger "acme-influxdb-hook: Restart the influxdb service after a certificate renewal"
systemctl restart influxdb >> $LE_LOGFILE 2>&1
systemctl restart influxd >> $LE_LOGFILE 2>&1
echo "acme-influxdb-hook: Restart the influxdb service" >> $LE_LOGFILE
logger "acme-influxdb-hook: Done"