From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rtxad-0007Ct-Mk for garchives@archives.gentoo.org; Sun, 05 Feb 2012 08:36:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E288CE058E; Sun, 5 Feb 2012 08:36:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AD559E058E for ; Sun, 5 Feb 2012 08:36:43 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A4AC1B4010 for ; Sun, 5 Feb 2012 08:36:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 48ECF80043 for ; Sun, 5 Feb 2012 08:36:42 +0000 (UTC) From: "Alexandre Restovtsev" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexandre Restovtsev" Message-ID: Subject: [gentoo-commits] proj/openrc-settingsd:master commit in: src/, / X-VCS-Repository: proj/openrc-settingsd X-VCS-Files: TODO src/main.c X-VCS-Directories: src/ / X-VCS-Committer: tetromino X-VCS-Committer-Name: Alexandre Restovtsev X-VCS-Revision: ffefb55a4a1bc00bceaa1ba477cf1db3e8635589 Date: Sun, 5 Feb 2012 08:36:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 605a0981-7f70-4c45-86b6-a24986b92a60 X-Archives-Hash: 70ad1be0cdea0e9f2add76eb39de77b8 commit: ffefb55a4a1bc00bceaa1ba477cf1db3e8635589 Author: Alexandre Rostovtsev gentoo org> AuthorDate: Sun Feb 5 08:35:50 2012 +0000 Commit: Alexandre Restovtsev gmail com> CommitDate: Sun Feb 5 08:36:23 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc-settin= gsd.git;a=3Dcommit;h=3Dffefb55a Add --read-only flag --- TODO | 2 -- src/main.c | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 62ec523..d6bebd9 100644 --- a/TODO +++ b/TODO @@ -7,8 +7,6 @@ document that this case is not supported? Write an init.d file to read RC_SYS so that we can piggyback on openrc's built-in virtualization detection. =20 -Add command-line arguments (e.g. --no-hostnamed --readonly-localed). - Implement localed and timedated. =20 Do something about runtime dependency on systemd's org.freedesktop.hostn= ame1.policy, diff --git a/src/main.c b/src/main.c index 7463fd3..9212eb6 100644 --- a/src/main.c +++ b/src/main.c @@ -30,10 +30,12 @@ #define DEFAULT_LEVELS (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG= _LEVEL_WARNING | G_LOG_LEVEL_MESSAGE) =20 static gboolean debug =3D FALSE; +static gboolean read_only =3D FALSE; =20 static GOptionEntry option_entries[] =3D { { "debug", 0, 0, G_OPTION_ARG_NONE, &debug, "Enable debugging messag= es", NULL }, + { "read-only", 0, 0, G_OPTION_ARG_NONE, &read_only, "Run in read-onl= y mode", NULL }, { NULL } }; =20 @@ -65,7 +67,7 @@ main (gint argc, gchar *argv[]) } =20 shell_utils_init (); - hostnamed_init (FALSE); + hostnamed_init (read_only); loop =3D g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); =20