Diff between 535f90da9b207e6dc90e19b275050199c0b8c6da and f755275e98b8510d2b099871ed1cb1396cee2cbe

Changed Files

File Additions Deletions Status
src/bluetooth.service.in +1 -2 modified
src/main.c +1 -8 modified

Full Patch

diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
index 7885119..8bbd703 100644
--- a/src/bluetooth.service.in
+++ b/src/bluetooth.service.in
@@ -4,8 +4,7 @@ Description=Bluetooth service
 [Service]
 Type=dbus
 BusName=org.bluez
-ExecStart=@libexecdir@/bluetoothd -n
-StandardOutput=null
+ExecStart=@libexecdir@/bluetoothd
 NotifyAccess=main
 #WatchdogSec=10
 #Restart=on-failure
diff --git a/src/main.c b/src/main.c
index 9812ab0..af590c2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -428,7 +428,7 @@ static GOptionEntry options[] = {
 				"Specify plugins not to load", "NAME,..." },
 	{ "nodetach", 'n', G_OPTION_FLAG_REVERSE,
 				G_OPTION_ARG_NONE, &option_detach,
-				"Don't run as daemon in background" },
+				"Run with logging in foreground" },
 	{ "version", 'v', 0, G_OPTION_ARG_NONE, &option_version,
 				"Show version information and exit" },
 	{ NULL },
@@ -465,13 +465,6 @@ int main(int argc, char *argv[])
 		exit(0);
 	}
 
-	if (option_detach == TRUE) {
-		if (daemon(0, 0)) {
-			perror("Can't start daemon");
-			exit(1);
-		}
-	}
-
 	umask(0077);
 
 	event_loop = g_main_loop_new(NULL, FALSE);