Skip to contentSkip to conversation

Use STOPPING=1 when shutting down

PATCH New Mario Lang 1 participant 1 message Apr 7, 2017 Bluetooth drivers

lore
Share & tools
lore

Mario Lang

author
#0 lore raw

PATCH 1/1 Use STOPPING=1 when shutting down

Quoting sd_notify(3):

STOPPING=1
Tells the service manager that the service is beginning its shutdown.

---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/main.c +1 -1
index bcc1e6f..122b028 100644
@@ -707,7 +707,7 @@ int main(int argc, char *argv[])
 
 	g_main_loop_run(event_loop);
 
-	sd_notify(0, "STATUS=Quitting");
+	sd_notify(0, "STOPPING=1\nSTATUS=Quitting");
 
 	g_source_remove(signal);
 
Signature · 1 line
2.9.3