aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-05 16:59:45 -0400
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-05 16:59:45 -0400
commit368ae06be039a6b14fed5c3deea960ddabbaf774 (patch)
tree05988eb7e042b88ffb02ea4622cb8f34b33be60e
parentForgot to set data->invocation (diff)
downloadopenrc-settingsd-368ae06be039a6b14fed5c3deea960ddabbaf774.tar.gz
openrc-settingsd-368ae06be039a6b14fed5c3deea960ddabbaf774.tar.bz2
openrc-settingsd-368ae06be039a6b14fed5c3deea960ddabbaf774.zip
Use full service script path when spawning
-rw-r--r--src/timedated.c4
1 files 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;