[Unit]
Description=Run before shutdown service
DefaultDependencies=no
Before=shutdown.target
[Service]
Type=oneshot
ExecStart=/root/scripts/telegram_notification.sh "[SHUTDOWN] System going down"
TimeoutStartSec=0
[Install]
WantedBy=shutdown.target