]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/daemon-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
8 #define NOTIFY_READY "READY=1\n" "STATUS=Processing requests..."
9 #define NOTIFY_STOPPING "STOPPING=1\n" "STATUS=Shutting down..."
11 static inline const char *notify_start(const char *start
, const char *stop
) {
13 (void) sd_notify(false, start
);
18 /* This is intended to be used with _cleanup_ attribute. */
19 static inline void notify_on_cleanup(const char **p
) {
21 (void) sd_notify(false, *p
);