Skip to content

Commit 53b9cf2

Browse files
committed
add /usr/libexec/helper-scripts/systemd-notify.bsh
1 parent 879ad71 commit 53b9cf2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <[email protected]>
4+
## See the file COPYING for copying conditions.
5+
6+
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
7+
set -o errexit
8+
set -o nounset
9+
set -o errtrace
10+
set -o pipefail
11+
fi
12+
13+
if [ "${NOTIFY_SOCKET-}" = "" ]; then
14+
## Support manual run from command line.
15+
## I.e. when run not through systemd unit.
16+
systemd_notify="true 'INFO: skip because NOTIFY_SOCKET unset. Probably run manually. SKIP: systemd-notify"
17+
else
18+
systemd_notify=systemd-notify
19+
fi

0 commit comments

Comments
 (0)