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
[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
"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 },
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);