summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--control_service.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/control_service.c b/control_service.c
index a6f035d..f3f1c5c 100644
--- a/control_service.c
+++ b/control_service.c
@@ -1,5 +1,6 @@
#include "control_service.h"
#include "control_commands.h"
+#include "conf.h"
#include <glib.h>
#include <glib/gstdio.h>
@@ -34,7 +35,12 @@ static gboolean service_incoming(GSocketService *service,
}
gboolean control_service_start() {
- address = g_unix_socket_address_new("audist.sock");
+ gchar *sockname = conf_get_string("audist", "control_socket");
+ if(sockname == NULL) {
+ g_warning("control_socket not set in config, can't start control service");
+ return FALSE;
+ }
+ address = g_unix_socket_address_new(sockname);
ss = g_threaded_socket_service_new(2);