[iwhd] Created tag v1.0
by Jim Meyering
The signed tag 'v1.0' was created.
Tagger: Jim Meyering <meyering(a)redhat.com>
Date: Mon Oct 31 17:55:25 2011 +0100
iwhd 1.0
Changes since the last tag 'v0.991':
Jim Meyering (5):
maint: post-release administrivia
iwhd: write better start/stop diagnostics to the log
maint: update line numbers in .po files
doc: mention what happens when mongod dies
version 1.0
Pete Zaitcev (1):
tests: fix a race in t/mongo-restart
12 years, 5 months
[iwhd] maint: post-release administrivia
by Jim Meyering
commit 1945b1f44aa19f9141ac3ed683bb0837d91924f5
Author: Jim Meyering <meyering(a)redhat.com>
Date: Mon Oct 31 17:57:27 2011 +0100
maint: post-release administrivia
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
.prev-version | 2 +-
NEWS | 3 +++
cfg.mk | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/.prev-version b/.prev-version
index 61ac65b..d3827e7 100644
--- a/.prev-version
+++ b/.prev-version
@@ -1 +1 @@
-0.991
+1.0
diff --git a/NEWS b/NEWS
index 91d4bf0..afe5b7c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
iwhd NEWS -*- outline -*-
+* Noteworthy changes in release ?.? (????-??-??) [?]
+
+
* Noteworthy changes in release 1.0 (2011-10-31) [stable]
** Known issue (minor)
diff --git a/cfg.mk b/cfg.mk
index 3895503..df73c8c 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -38,7 +38,7 @@ bootstrap-tools = autoconf,automake,gnulib
# Now that we have better tests, make this the default.
export VERBOSE = yes
-old_NEWS_hash = 9203b79c2d1de38a9d59fae85866f831
+old_NEWS_hash = ffc8b249849761d9c5fb96c90cc3bd0d
sc_prohibit_echo_minus_en:
@prohibit='\<echo -[en]' \
12 years, 5 months
[iwhd] version 1.0
by Jim Meyering
commit b816dff29b4524d14a1f96a6ccf4f65b3625e300
Author: Jim Meyering <meyering(a)redhat.com>
Date: Mon Oct 31 17:55:25 2011 +0100
version 1.0
* NEWS: Record release date.
NEWS | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index f314121..91d4bf0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
iwhd NEWS -*- outline -*-
-* Noteworthy changes in release ?.? (????-??-??) [?]
+* Noteworthy changes in release 1.0 (2011-10-31) [stable]
** Known issue (minor)
12 years, 5 months
[iwhd] doc: mention what happens when mongod dies
by Jim Meyering
commit bc94957bc7d73b81af3b8b378f74f28a21a2f9d0
Author: Jim Meyering <meyering(a)redhat.com>
Date: Mon Oct 31 17:49:52 2011 +0100
doc: mention what happens when mongod dies
* NEWS (Known issue): Mention it.
NEWS | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 46418d3..f314121 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,14 @@ iwhd NEWS -*- outline -*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+** Known issue (minor)
+
+ iwhd is not very useful without mongod. Ideally, iwhd would communicate
+ its inability to do useful work during that period, and when mongod
+ becomes usable again iwhd would, too. However, currently, attempting
+ to do things like create an object or an attribute in iwhd makes iwhd
+ dereference NULL whenever mongod is unreachable.
+
* Noteworthy changes in release 0.991 (2011-10-20) [stable]
12 years, 5 months
[iwhd] maint: update line numbers in .po files
by Jim Meyering
commit 469cc3177e087d64961d86896575615e9928f2e3
Author: Jim Meyering <meyering(a)redhat.com>
Date: Mon Oct 31 17:42:15 2011 +0100
maint: update line numbers in .po files
po/es.po | 12 ++++++------
po/ja.po | 12 ++++++------
po/ru.po | 12 ++++++------
po/uk.po | 12 ++++++------
4 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/po/es.po b/po/es.po
index 8f57f6c..e2fb270 100644
--- a/po/es.po
+++ b/po/es.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Image WareHouse Daemon\n"
"Report-Msgid-Bugs-To: iwhd-devel(a)fedorahosted.org\n"
-"POT-Creation-Date: 2011-10-20 20:19+0200\n"
+"POT-Creation-Date: 2011-10-31 17:30+0100\n"
"PO-Revision-Date: 2011-10-10 12:22+0000\n"
"Last-Translator: meyering <jim(a)meyering.net>\n"
"Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/iwhd/"
@@ -708,27 +708,27 @@ msgstr ""
msgid "A deprecated flag -U is specified, migrate to -u"
msgstr ""
-#: rest.c:2887 rest.c:2910
+#: rest.c:2887 rest.c:2911
#, c-format
msgid "could not parse %s"
msgstr ""
-#: rest.c:2897
+#: rest.c:2898
#, c-format
msgid "do not use -c and -a simultaneously"
msgstr ""
-#: rest.c:2915
+#: rest.c:2916
#, c-format
msgid "specify at least -c or -a"
msgstr ""
-#: rest.c:2942
+#: rest.c:2943
#, c-format
msgid "write failed"
msgstr ""
-#: rest.c:2960
+#: rest.c:2961
#, c-format
msgid "failed to start daemon"
msgstr ""
diff --git a/po/ja.po b/po/ja.po
index 949eb4f..6ec0bad 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Image WareHouse Daemon\n"
"Report-Msgid-Bugs-To: iwhd-devel(a)fedorahosted.org\n"
-"POT-Creation-Date: 2011-10-20 20:19+0200\n"
+"POT-Creation-Date: 2011-10-31 17:30+0100\n"
"PO-Revision-Date: 2011-10-10 12:22+0000\n"
"Last-Translator: meyering <jim(a)meyering.net>\n"
"Language-Team: Japanese (http://www.transifex.net/projects/p/iwhd/team/ja/)\n"
@@ -707,27 +707,27 @@ msgstr ""
msgid "A deprecated flag -U is specified, migrate to -u"
msgstr ""
-#: rest.c:2887 rest.c:2910
+#: rest.c:2887 rest.c:2911
#, c-format
msgid "could not parse %s"
msgstr ""
-#: rest.c:2897
+#: rest.c:2898
#, c-format
msgid "do not use -c and -a simultaneously"
msgstr ""
-#: rest.c:2915
+#: rest.c:2916
#, c-format
msgid "specify at least -c or -a"
msgstr ""
-#: rest.c:2942
+#: rest.c:2943
#, c-format
msgid "write failed"
msgstr ""
-#: rest.c:2960
+#: rest.c:2961
#, c-format
msgid "failed to start daemon"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index e19be35..0bfc0d9 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Image WareHouse Daemon\n"
"Report-Msgid-Bugs-To: iwhd-devel(a)fedorahosted.org\n"
-"POT-Creation-Date: 2011-10-20 20:19+0200\n"
+"POT-Creation-Date: 2011-10-31 17:30+0100\n"
"PO-Revision-Date: 2011-10-10 12:22+0000\n"
"Last-Translator: meyering <jim(a)meyering.net>\n"
"Language-Team: Russian (http://www.transifex.net/projects/p/iwhd/team/ru/)\n"
@@ -708,27 +708,27 @@ msgstr ""
msgid "A deprecated flag -U is specified, migrate to -u"
msgstr ""
-#: rest.c:2887 rest.c:2910
+#: rest.c:2887 rest.c:2911
#, c-format
msgid "could not parse %s"
msgstr ""
-#: rest.c:2897
+#: rest.c:2898
#, c-format
msgid "do not use -c and -a simultaneously"
msgstr ""
-#: rest.c:2915
+#: rest.c:2916
#, c-format
msgid "specify at least -c or -a"
msgstr ""
-#: rest.c:2942
+#: rest.c:2943
#, c-format
msgid "write failed"
msgstr ""
-#: rest.c:2960
+#: rest.c:2961
#, c-format
msgid "failed to start daemon"
msgstr ""
diff --git a/po/uk.po b/po/uk.po
index 8c5cd35..6bd57a8 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Image WareHouse Daemon\n"
"Report-Msgid-Bugs-To: iwhd-devel(a)fedorahosted.org\n"
-"POT-Creation-Date: 2011-10-20 20:19+0200\n"
+"POT-Creation-Date: 2011-10-31 17:30+0100\n"
"PO-Revision-Date: 2011-10-10 15:53+0000\n"
"Last-Translator: yurchor <yurchor(a)ukr.net>\n"
"Language-Team: Ukrainian <trans-uk(a)lists.fedoraproject.org>\n"
@@ -758,27 +758,27 @@ msgstr "зайвий операнд %s"
msgid "A deprecated flag -U is specified, migrate to -u"
msgstr ""
-#: rest.c:2887 rest.c:2910
+#: rest.c:2887 rest.c:2911
#, c-format
msgid "could not parse %s"
msgstr "не вдалося обробити %s"
-#: rest.c:2897
+#: rest.c:2898
#, c-format
msgid "do not use -c and -a simultaneously"
msgstr "не можна використовувати -c і -a одночасно"
-#: rest.c:2915
+#: rest.c:2916
#, c-format
msgid "specify at least -c or -a"
msgstr "вкажіть принаймні -c або -a"
-#: rest.c:2942
+#: rest.c:2943
#, c-format
msgid "write failed"
msgstr "помилка під час спроби запису"
-#: rest.c:2960
+#: rest.c:2961
#, c-format
msgid "failed to start daemon"
msgstr "не вдалося запустити фонову службу"
12 years, 5 months
[iwhd] iwhd: write better start/stop diagnostics to the log
by Jim Meyering
commit e24af06c38014e9bda0d4164f64de3f8b51d6a79
Author: Jim Meyering <meyering(a)redhat.com>
Date: Fri Oct 21 19:09:13 2011 +0200
iwhd: write better start/stop diagnostics to the log
* rest.c (main): At start-up, emit an "Initializing..." diagnostic.
* iwhd.init.in (IWHD_LOG_FILE): Define. Factored out of ...
(IWHD_ARGS): ...here. Use it.
(stop): Log kill success/failure.
This address part of http://bugzilla.redhat.com/747984.
iwhd.init.in | 9 ++++++++-
rest.c | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/iwhd.init.in b/iwhd.init.in
index b2d2f9d..9705c4a 100644
--- a/iwhd.init.in
+++ b/iwhd.init.in
@@ -27,6 +27,7 @@ PROCESS=iwhd
PIDFILE=@localstatedir(a)/run/$SERVICE.pid
CONFIG_JS=@sysconfdir(a)/iwhd/conf.js
MONGOD_SERVER_SPEC=localhost:27017
+IWHD_LOG_FILE=/var/log/iwhd.log
# How many seconds to wait for mongod to become usable before giving up.
MONGOD_N_SECONDS=2
@@ -36,7 +37,7 @@ MONGOD_N_SECONDS=2
# writing in /tmp.
export TMPDIR=@localstatedir@/cache/iwhd
-IWHD_ARGS="-d $MONGOD_SERVER_SPEC -l /var/log/iwhd.log"
+IWHD_ARGS="-d $MONGOD_SERVER_SPEC -l $IWHD_LOG_FILE"
test -r @sysconfdir@/sysconfig/iwhd && . @sysconfdir@/sysconfig/iwhd
@@ -100,11 +101,17 @@ start() {
stop() {
action $"Stopping $SERVICE daemon: " killproc -p $PIDFILE $PROCESS
RETVAL=$?
+ pid=$(cat $PIDFILE)
if test $RETVAL = 0; then
rm -f @localstatedir@/lock/subsys/$SERVICE
rm -f $PIDFILE
rm -rf @localstatedir@/cache/iwhd/*
+ msg=killed
+ else
+ msg='tried/failed to kill'
fi
+ # Write something to the log about our kill attempt:
+ echo "$(date '+%m %d %T') $msg $PROCESS[$pid]" >> $IWHD_LOG_FILE
return $RETVAL
}
diff --git a/rest.c b/rest.c
index f1d8efd..df31150 100644
--- a/rest.c
+++ b/rest.c
@@ -2893,6 +2893,7 @@ args_done:
db_port = autostart ? AUTO_MONGOD_PORT : 27017;
}
+ printf ("Initializing...\n");
if (autostart && cfg_file) {
error (0, 0, _("do not use -c and -a simultaneously"));
return !0;
12 years, 5 months
[iwhd] tests: fix a race in t/mongo-restart
by Jim Meyering
commit 59c9bfebbf4c043e5509fbda3af5e7e05b98ca34
Author: Pete Zaitcev <zaitcev(a)redhat.com>
Date: Mon Oct 24 16:19:01 2011 -0600
tests: fix a race in t/mongo-restart
Ian McLeod found that on his system mongod takes a while from the moment
it stopped listening until the time it releases the data lock, so when
we then try to start mongo, it fails to lock and exits, causing a
spurious test failure.
The fix is to poll for mongo actually exiting, and not merely stopping
listening. This is made simple by knowing the right PID. Hopefuly it's
not reused too quickly.
t/mongo-restart | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/t/mongo-restart b/t/mongo-restart
index 1447952..eb0da4f 100755
--- a/t/mongo-restart
+++ b/t/mongo-restart
@@ -64,8 +64,8 @@ creation_evokes_201 b1
kill $mongo_pid
-# Wait for mongo to stop listening.
-no_mongo() { mongo localhost:$m_port < /dev/null; test $? != 0; }
+# Wait for mongo to disappear. Takes a while sometimes.
+no_mongo() { kill -s 0 $mongo_pid 2> /dev/null; test $? != 0; }
wait_for .1 50 no_mongo || fail_ failed to kill mongo
mongod --port $m_port --pidfilepath mongod/pid --dbpath mongod &
12 years, 5 months
[iwhd] Created tag v0.991
by Jim Meyering
The signed tag 'v0.991' was created.
Tagger: Jim Meyering <meyering(a)redhat.com>
Date: Thu Oct 20 20:27:22 2011 +0200
iwhd 0.991
Changes since the last tag 'v0.990':
Jim Meyering (7):
maint: post-release administrivia
avoid a NULL dereference
maint: avoid warning from coverity about '0' as memset fill byte
build: avoid "make distcheck" failure due to incomplete uninstall
oauth: ensure that the current locale does not influence parsing
update line numbers in .po files
version 0.991
Pete Zaitcev (4):
tests: eliminate sleep 5 in t/oauth
Add a user list
oauth: avoid unnecessary work: add ms->authorized
oauth: include oauth_body_hash header in hash computation
12 years, 5 months
[iwhd] maint: post-release administrivia
by Jim Meyering
commit b7d68450182eeeb94dca88810331f224ecac07fe
Author: Jim Meyering <meyering(a)redhat.com>
Date: Thu Oct 20 20:30:05 2011 +0200
maint: post-release administrivia
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
.prev-version | 2 +-
NEWS | 3 +++
cfg.mk | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/.prev-version b/.prev-version
index ed81122..61ac65b 100644
--- a/.prev-version
+++ b/.prev-version
@@ -1 +1 @@
-0.990
+0.991
diff --git a/NEWS b/NEWS
index 476f6af..46418d3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
iwhd NEWS -*- outline -*-
+* Noteworthy changes in release ?.? (????-??-??) [?]
+
+
* Noteworthy changes in release 0.991 (2011-10-20) [stable]
** Bug fixes
diff --git a/cfg.mk b/cfg.mk
index 1e9292c..3895503 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -38,7 +38,7 @@ bootstrap-tools = autoconf,automake,gnulib
# Now that we have better tests, make this the default.
export VERBOSE = yes
-old_NEWS_hash = bd6e9c0a62c107d0d327c75b5f8bab48
+old_NEWS_hash = 9203b79c2d1de38a9d59fae85866f831
sc_prohibit_echo_minus_en:
@prohibit='\<echo -[en]' \
12 years, 5 months
[iwhd] version 0.991
by Jim Meyering
commit b30f45dd220907f7a1dde2d9753ade8ec2cfad0c
Author: Jim Meyering <meyering(a)redhat.com>
Date: Thu Oct 20 20:27:22 2011 +0200
version 0.991
* NEWS: Record release date.
NEWS | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 62f089f..476f6af 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
iwhd NEWS -*- outline -*-
-* Noteworthy changes in release ?.? (????-??-??) [?]
+* Noteworthy changes in release 0.991 (2011-10-20) [stable]
** Bug fixes
12 years, 5 months