[gnome-settings-daemon] datetime: Fix setting NTP on Fedora 15
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] datetime: Fix setting NTP on Fedora 15
- Date: Thu, 28 Apr 2011 14:49:19 +0000 (UTC)
commit 4d980c885afaadae455f4c24fedefa7026e8beec
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 28 15:43:56 2011 +0100
datetime: Fix setting NTP on Fedora 15
https://bugzilla.gnome.org/show_bug.cgi?id=648556
plugins/datetime/gsd-datetime-mechanism-fedora.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/datetime/gsd-datetime-mechanism-fedora.c b/plugins/datetime/gsd-datetime-mechanism-fedora.c
index 2b9221f..9333d24 100644
--- a/plugins/datetime/gsd-datetime-mechanism-fedora.c
+++ b/plugins/datetime/gsd-datetime-mechanism-fedora.c
@@ -73,7 +73,9 @@ _set_using_ntp_fedora (DBusGMethodInvocation *context,
error = NULL;
- cmd = g_strconcat ("/sbin/chkconfig ntpd --level 2345", using_ntp ? "on" : "off", NULL);
+ /* We omit --level 2345 so that systemd doesn't try to use the
+ * SysV init scripts */
+ cmd = g_strconcat ("/sbin/chkconfig ntpd ", using_ntp ? "on" : "off", NULL);
if (!g_spawn_command_line_sync (cmd,
NULL, NULL, &exit_status, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]