diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-daemon.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/test/test-daemon.c b/src/test/test-daemon.c index bcc049b325..7e0ac754d1 100644 --- a/src/test/test-daemon.c +++ b/src/test/test-daemon.c @@ -25,13 +25,29 @@ int main(int argc, char*argv[]) { - sd_notify(0, "STATUS=Starting up"); + sd_notify(0, + "STATUS=Starting up"); + sleep(5); + + sd_notify(0, + "STATUS=Running\n" + "READY=1"); + sleep(5); + + sd_notify(0, + "STATUS=Reloading\n" + "RELOADING=1"); sleep(5); + sd_notify(0, "STATUS=Running\n" "READY=1"); - sleep(10); - sd_notify(0, "STATUS=Quitting"); + sleep(5); + + sd_notify(0, + "STATUS=Quitting\n" + "STOPPING=1"); + sleep(5); return 0; } |