[PATCH BlueZ] Use STOPPING=1 when shutting down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

diff --git a/src/main.c b/src/main.c
index bcc1e6f..122b028 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
 
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux