Capture full systemd unit name for ntfy error alerts
This commit is contained in:
@@ -46,7 +46,7 @@ in
|
|||||||
mkdir -p $out/lib/systemd/system/service.d
|
mkdir -p $out/lib/systemd/system/service.d
|
||||||
cat > $out/lib/systemd/system/service.d/ntfy-on-failure.conf <<'EOF'
|
cat > $out/lib/systemd/system/service.d/ntfy-on-failure.conf <<'EOF'
|
||||||
[Unit]
|
[Unit]
|
||||||
OnFailure=ntfy-failure@%p.service
|
OnFailure=ntfy-failure@%N.service
|
||||||
EOF
|
EOF
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user