Changed systemd-notifier namings

This commit is contained in:
2023-12-03 11:24:17 +01:00
parent d3de68b216
commit 3120b23eb4
41 changed files with 93 additions and 93 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/bash
/usr/bin/curl -s -X POST https://api.telegram.org/bot{{ telegram_bot_token }}/sendMessage -d chat_id={{ telegram_chat_id }} -d text="service $1 failed"

View File

@@ -0,0 +1,8 @@
[Unit]
Description=status Telegram message for %i to user
[Service]
Type=oneshot
ExecStart=/bin/bash {{ systemd_telegram_script }} %i
User=root
Group=systemd-journal