mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Revert "dbus: Use --syslog-only instead of Finit built-in log redirect"
This reverts commit df89cc79b9. Not all
distros (Debian, Alpine) have a dbus-daemon that supports --syslog-only
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@
|
||||
#include "conf.h"
|
||||
|
||||
#define DAEMON "dbus-daemon"
|
||||
#define ARGS "--nofork --system --syslog-only"
|
||||
#define ARGS "--nofork --system"
|
||||
#define DESC "D-Bus message bus daemon"
|
||||
|
||||
static void setup(void *arg)
|
||||
@@ -58,7 +58,7 @@ static void setup(void *arg)
|
||||
erase("/var/run/dbus/pid");
|
||||
|
||||
/* Register service with Finit */
|
||||
snprintf(line, sizeof(line), "[S12345] %s %s -- %s", cmd, ARGS, DESC);
|
||||
snprintf(line, sizeof(line), "[S12345] log:prio:daemon.info,tag:dbus %s %s -- %s", cmd, ARGS, DESC);
|
||||
if (service_register(SVC_TYPE_SERVICE, line, global_rlimit, NULL))
|
||||
_pe("Failed registering %s", DAEMON);
|
||||
free(cmd);
|
||||
|
||||
Reference in New Issue
Block a user