From 368ae06be039a6b14fed5c3deea960ddabbaf774 Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Wed, 5 Sep 2012 16:59:45 -0400 Subject: Use full service script path when spawning --- src/timedated.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timedated.c b/src/timedated.c index 6247679..7a66663 100644 --- a/src/timedated.c +++ b/src/timedated.c @@ -224,7 +224,7 @@ service_disable (const gchar *service, } g_debug ("Stopping %s rc service", service); - argv[0] = service; + argv[0] = service_script; if (!g_spawn_sync (NULL, (gchar **)argv, NULL, 0, NULL, NULL, NULL, NULL, &exit_status, error)) { g_prefix_error (error, "Failed to spawn %s rc service:", service); goto out; @@ -271,7 +271,7 @@ service_enable (const gchar *service, } g_debug ("Starting %s rc service", service); - argv[0] = service; + argv[0] = service_script; if (!g_spawn_sync (NULL, (gchar **)argv, NULL, 0, NULL, NULL, NULL, NULL, &exit_status, error)) { g_prefix_error (error, "Failed to spawn %s rc service:", service); goto out; -- cgit v1.2.3-65-gdbad