lsb.git
12 years agoGet Distributor ID from /etc/dpkg/origins/default if existant
Didier Raboud [Wed, 15 May 2013 19:27:53 +0000 (21:27 +0200)]
Get Distributor ID from /etc/dpkg/origins/default if existant

This helps Debian derivatives to avoid forking the lsb package.

Closes: #703677
12 years agoAdd jessie to the release codenames lookup table
Didier Raboud [Wed, 15 May 2013 16:39:12 +0000 (18:39 +0200)]
Add jessie to the release codenames lookup table

Also amend lsb-release.README.Debian to make it not too outdated.

12 years agodebian/rules: fix the build on Ubuntu derivatives when building only the arch-depende...
Steve Langasek [Wed, 15 May 2013 19:34:25 +0000 (19:34 +0000)]
debian/rules: fix the build on Ubuntu derivatives when building only the arch-dependent packages.

12 years agoCorrect duplicate reference to log_action_end_msg_post in debian/lsb-base.README...
Steve Langasek [Wed, 15 May 2013 18:05:41 +0000 (13:05 -0500)]
Correct duplicate reference to log_action_end_msg_post in debian/lsb-base.README.Debian.

12 years agoFix debian/copyright to list the correct Canonical copyright for the Ubuntu logging...
Steve Langasek [Wed, 15 May 2013 18:04:21 +0000 (13:04 -0500)]
Fix debian/copyright to list the correct Canonical copyright for the Ubuntu logging functions.

12 years agoadd -Es to the lsb_release python shebang, as discussed in <https://lists.debian...
Steve Langasek [Wed, 15 May 2013 17:40:59 +0000 (12:40 -0500)]
add -Es to the lsb_release python shebang, as discussed in <https://lists.debian.org/debian-python/2012/10/msg00021.html>.

12 years agolsb 4.1+Debian10 Debian release.
Didier Raboud [Wed, 15 May 2013 09:06:44 +0000 (11:06 +0200)]
lsb 4.1+Debian10 Debian release.

12 years agoCompress source with xz
Didier Raboud [Wed, 15 May 2013 09:06:36 +0000 (11:06 +0200)]
Compress source with xz

12 years agoRevert unnecessary use of /bin/echo -n
Steve Langasek [Wed, 15 May 2013 08:47:03 +0000 (10:47 +0200)]
Revert unnecessary use of /bin/echo -n

In response to bug #602038, the init-functions scripts in lsb-base have been
changed to use /bin/echo -n instead of echo -n.  This results in a lot of
added forks which are unnecessary and inappropriate: 'echo -n' is guaranteed
by Debian policy to be supported by the shell.

Closes: #708337
12 years agoFix the remaining problems of initdutils.py python3 compatibility
Steve Langasek [Wed, 15 May 2013 08:45:39 +0000 (10:45 +0200)]
Fix the remaining problems of initdutils.py python3 compatibility

The latest version of lsb is almost compatible with python3 at build-time.
Just one test still fails under python3.x, because initdutils.py has not
been ported to python3.  It's fairly easy to fix this up for python3
compatibility (via 2to3 or otherwise).

Closes: #673586
12 years agoMerge branch 'master-wheezy'
Didier Raboud [Wed, 15 May 2013 08:40:56 +0000 (10:40 +0200)]
Merge branch 'master-wheezy'

Conflicts:
debian/changelog

13 years agolsb 4.1+Debian9 Debian release.
Didier Raboud [Mon, 12 Nov 2012 07:58:04 +0000 (08:58 +0100)]
lsb 4.1+Debian9 Debian release.

13 years agoSanity-check pidofproc parameters
Jeff Licquia [Sat, 10 Nov 2012 15:26:30 +0000 (10:26 -0500)]
Sanity-check pidofproc parameters

Closes: #691422.
13 years agolsb 4.1+Debian8+exp0 Debian experimental release.
Didier Raboud [Sat, 10 Nov 2012 16:00:30 +0000 (17:00 +0100)]
lsb 4.1+Debian8+exp0 Debian experimental release.

13 years agoSanity-check pidofproc parameters
Jeff Licquia [Sat, 10 Nov 2012 15:26:30 +0000 (10:26 -0500)]
Sanity-check pidofproc parameters

Closes: #691422.
13 years agoFix initdutils for Python 3 compatibility.
Jeff Licquia [Sun, 15 Jul 2012 19:09:37 +0000 (15:09 -0400)]
Fix initdutils for Python 3 compatibility.

13 years agolsb 4.1+Debian8 Debian release.
Didier Raboud [Mon, 5 Nov 2012 11:03:33 +0000 (12:03 +0100)]
lsb 4.1+Debian8 Debian release.

13 years agoRevert "Fix initdutils for Python 3 compatibility."
Didier Raboud [Mon, 5 Nov 2012 11:03:15 +0000 (12:03 +0100)]
Revert "Fix initdutils for Python 3 compatibility."

This reverts commit 2a5bb842665d68772dd45c1a25b43412737aa810.

13 years agoHide the stderr output of $(initctl version) in init_is_upstart.
Didier Raboud [Sun, 29 Jul 2012 11:41:36 +0000 (13:41 +0200)]
Hide the stderr output of $(initctl version) in init_is_upstart.

Closes: #682032
Reported-By: Michael Biebl <biebl@debian.org>
13 years agoFix initdutils for Python 3 compatibility.
Jeff Licquia [Sun, 15 Jul 2012 19:09:37 +0000 (15:09 -0400)]
Fix initdutils for Python 3 compatibility.

13 years agoFix libqt3-mt missing epoch.
Didier Raboud [Thu, 5 Jul 2012 22:08:07 +0000 (16:08 -0600)]
Fix libqt3-mt missing epoch.

Thanks-To: Jakub Wilk <jwilk@debian.org>
13 years agolsb 4.1+Debian7 Debian release.
Didier Raboud [Sun, 10 Jun 2012 21:18:07 +0000 (23:18 +0200)]
lsb 4.1+Debian7 Debian release.

13 years agoMerge branch 'qt3_drop'
Didier Raboud [Sun, 10 Jun 2012 21:15:34 +0000 (23:15 +0200)]
Merge branch 'qt3_drop'

13 years agoAccept utf-8 in `apt-cache policy` and `dpkg-query` outputs.
Didier Raboud [Mon, 4 Jun 2012 18:13:44 +0000 (20:13 +0200)]
Accept utf-8 in `apt-cache policy` and `dpkg-query` outputs.

Reported-by: Frédéric Brière <fbriere@fbriere.net>
Closes: #675618
13 years agoAdd test case for #675618.
Didier Raboud [Mon, 4 Jun 2012 17:55:29 +0000 (19:55 +0200)]
Add test case for #675618.

13 years agolsb 4.1+Debian6 Debian release.
Didier Raboud [Wed, 30 May 2012 17:27:22 +0000 (19:27 +0200)]
lsb 4.1+Debian6 Debian release.

13 years agoRevert "Allow FANCYTTY to be sourced from /etc/default/rcS."
Didier Raboud [Wed, 30 May 2012 14:01:53 +0000 (16:01 +0200)]
Revert "Allow FANCYTTY to be sourced from /etc/default/rcS."

This reverts commit ce9dcceef7745798cf92b2aac03164818b79ce63.

This avoids one ugly `set +u` in the $() subshell and avoids the hijack of /etc/default/rcS.

Reopens: #673207

Closes: #675162
Reported-by: Kamen Naydenov <pau4o@kamennn.eu>
Closes: #675197
Reported-by: Steve Cotton <steve@s.cotton.clara.co.uk>
Thanks-To: Julien Cristau <jcristau@debian.org>
13 years agolsb 4.1+Debian5 Debian release.
Didier Raboud [Tue, 29 May 2012 07:33:04 +0000 (09:33 +0200)]
lsb 4.1+Debian5 Debian release.

13 years agolsb-desktop: Demote Qt3 dependency to a Recommends.
Didier Raboud [Mon, 28 May 2012 12:57:32 +0000 (14:57 +0200)]
lsb-desktop: Demote Qt3 dependency to a Recommends.

- Add a README.Debian to lsb-desktop to document the possibility to
  install Qt3 from snapshot.debian.org;
- Add a NEWS.Debian to lsb-desktop to document the derogation to the LSB
  4.1 specification.

Closes: #604360
13 years agoPy: Deprecate the compare_release function.
Didier Raboud [Wed, 23 May 2012 12:15:20 +0000 (14:15 +0200)]
Py: Deprecate the compare_release function.

In the process, rewrite it to be based on release_index() for robustness.

13 years agoPy3: Drop unused commands module in lsb_release.
Didier Raboud [Wed, 23 May 2012 11:42:37 +0000 (13:42 +0200)]
Py3: Drop unused commands module in lsb_release.

Git-Dch: None

13 years agoPy3: Use new print() functions in lsb_release.
Didier Raboud [Wed, 23 May 2012 11:42:01 +0000 (13:42 +0200)]
Py3: Use new print() functions in lsb_release.

Thanks-to: Jakub Wilk <jwilk@debian.org>
13 years agoPy3: Fix parse_policy_line test for python3.
Didier Raboud [Wed, 23 May 2012 11:41:15 +0000 (13:41 +0200)]
Py3: Fix parse_policy_line test for python3.

Git-Dch: None

13 years agoPy3: Replace `compare` with `key` function.
Didier Raboud [Wed, 23 May 2012 11:29:22 +0000 (13:29 +0200)]
Py3: Replace `compare` with `key` function.

13 years agoPyUT: Add test_sort_releases to test multiple sorting syntaxes.
Didier Raboud [Wed, 23 May 2012 11:22:30 +0000 (13:22 +0200)]
PyUT: Add test_sort_releases to test multiple sorting syntaxes.

Git-Dch: None

13 years agoPy3: Replace cmp usage by its equivalent.
Didier Raboud [Wed, 23 May 2012 09:30:47 +0000 (11:30 +0200)]
Py3: Replace cmp usage by its equivalent.

13 years agoPyUT3: Fix rnd_string to use ascii_letters and range instead of letters and xrange.
Didier Raboud [Wed, 23 May 2012 09:26:25 +0000 (11:26 +0200)]
PyUT3: Fix rnd_string to use ascii_letters and range instead of letters and xrange.

Git-Dch: None

13 years agoPy3: Bugfix check_modules_installed()
Didier Raboud [Wed, 23 May 2012 09:21:00 +0000 (11:21 +0200)]
Py3: Bugfix check_modules_installed()

Git-Dch: None

13 years agoPy3: Fix lists usage and handling.
Didier Raboud [Wed, 23 May 2012 09:20:24 +0000 (11:20 +0200)]
Py3: Fix lists usage and handling.

13 years agoPy3: Replace commands with subprocess calls in lsb_release.py.
Didier Raboud [Wed, 23 May 2012 09:18:18 +0000 (11:18 +0200)]
Py3: Replace commands with subprocess calls in lsb_release.py.

Thanks-to: Nicolas Dandrimont <nicolas.dandrimont@crans.org>
Thanks-to: Jakub Wilk <jwilk@debian.org>
13 years agoPy3: Use new print() functions and fix types in lsb_release.py
Didier Raboud [Wed, 23 May 2012 09:16:39 +0000 (11:16 +0200)]
Py3: Use new print() functions and fix types in lsb_release.py

Thanks-to: Jakub Wilk <jwilk@debian.org>
13 years agoPyUT: Implement test for lsb_release.get_distro_information.
Didier Raboud [Wed, 23 May 2012 08:43:38 +0000 (10:43 +0200)]
PyUT: Implement test for lsb_release.get_distro_information.

13 years agoPyUT: Put the distinfo commonities in get_arch_distinfo function.
Didier Raboud [Wed, 23 May 2012 08:42:54 +0000 (10:42 +0200)]
PyUT: Put the distinfo commonities in get_arch_distinfo function.

Git-Dch: None

13 years agoPyUT: re-indent the guess_release_from_apt calls.
Didier Raboud [Wed, 23 May 2012 08:11:56 +0000 (10:11 +0200)]
PyUT: re-indent the guess_release_from_apt calls.

Git-Dch: None

13 years agoAvoid useless calls to guess_release_from_apt().
Francois Gouget [Wed, 23 May 2012 12:54:43 +0000 (14:54 +0200)]
Avoid useless calls to guess_release_from_apt().

In guess_debian_release(), avoid calling guess_release_from_apt() if a
codename is already provided.

Closes: #674143
Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoPyUT: Implement test for lsb_release.guess_debian_release.
Didier Raboud [Wed, 23 May 2012 08:08:42 +0000 (10:08 +0200)]
PyUT: Implement test for lsb_release.guess_debian_release.

This includes a modification of lsb_release.py to enable an
overridability with an environment variable LSB_ETC_DEBIAN_VERSION that
can point to another /etc/debian_version.

13 years agoPyUT: Implement test for lsb_release.guess_release_apt.
Didier Raboud [Tue, 22 May 2012 14:19:15 +0000 (16:19 +0200)]
PyUT: Implement test for lsb_release.guess_release_apt.

13 years agoPyUT: Bugfix environment left-overs.
Didier Raboud [Tue, 22 May 2012 13:40:56 +0000 (15:40 +0200)]
PyUT: Bugfix environment left-overs.

Git-Dch: None

13 years agoPyUT: Implement test for lsb_release.get_lsb_information.
Didier Raboud [Tue, 22 May 2012 13:19:54 +0000 (15:19 +0200)]
PyUT: Implement test for lsb_release.get_lsb_information.

This includes a modification of lsb_release.py to enable an
overridability with an environment variable LSB_ETC_LSB_RELEASE that can
point to another /etc/lsb-release

13 years agoPyUT: Implement test for lsb_release.check_modules_installed.
Didier Raboud [Tue, 22 May 2012 13:01:05 +0000 (15:01 +0200)]
PyUT: Implement test for lsb_release.check_modules_installed.

13 years agoAdd the /usr/lib/sendmail symlink to /u/s/sendmail in lsb-invalid-mta.
Didier Raboud [Tue, 22 May 2012 11:50:24 +0000 (13:50 +0200)]
Add the /usr/lib/sendmail symlink to /u/s/sendmail in lsb-invalid-mta.

Reported-by: Stew Benedict <stewb@linux-foundation.org>
LP: #580914

13 years agoSafe-guard calls to echo with || true.
Didier Raboud [Tue, 22 May 2012 10:54:02 +0000 (12:54 +0200)]
Safe-guard calls to echo with || true.

This helps towards making sure init.d scripts called with `set -e`
continue to work, see #661002.

In particular, this avoids blocking all init.d scripts run on a terminal
where civis and cnorm are capabilities not available, such as cmd.exe .

Thanks-to: Sam Hocevar <sho@debian.org>
13 years agoPyUT: Implement test for lsb_release.parse_apt_policy.
Didier Raboud [Tue, 22 May 2012 09:48:32 +0000 (11:48 +0200)]
PyUT: Implement test for lsb_release.parse_apt_policy.

13 years agoPyUT: Fix a minor typo.
Didier Raboud [Tue, 22 May 2012 08:46:32 +0000 (10:46 +0200)]
PyUT: Fix a minor typo.

Git-Dch: None

13 years agoPyUT: Add a fake apt-cache for testing purposes.
Didier Raboud [Tue, 22 May 2012 08:44:43 +0000 (10:44 +0200)]
PyUT: Add a fake apt-cache for testing purposes.

13 years agoPyUT: Implement test for lsb_release.compare_release.
Didier Raboud [Tue, 22 May 2012 08:28:08 +0000 (10:28 +0200)]
PyUT: Implement test for lsb_release.compare_release.

13 years agoPyUT: Add rnd_string function for the creation of random strings.
Didier Raboud [Mon, 21 May 2012 16:43:09 +0000 (18:43 +0200)]
PyUT: Add rnd_string function for the creation of random strings.

Git-Dch: None

13 years agoPyUT: Implement test for lsb_release.parse_policy_line.
Didier Raboud [Mon, 21 May 2012 15:18:57 +0000 (17:18 +0200)]
PyUT: Implement test for lsb_release.parse_policy_line.

13 years agoAllow FANCYTTY to be sourced from /etc/default/rcS.
Didier Raboud [Mon, 21 May 2012 12:58:14 +0000 (14:58 +0200)]
Allow FANCYTTY to be sourced from /etc/default/rcS.

The FANCYTTY shell variable is sourced from /etc/default/rcS before
etc/lsb-base-logging.sh .

- Systems with an administrator-provided /etc/lsb-base-logging.sh keep
  working.
- Systems without /etc/lsb-base-logging.sh can now override FANCYTTY in
  /etc/default/rcS too.

Thanks-To: Roger Leigh <rleigh@codelibre.net>
Reported-by: Stanislav Maslovski <stanislav.maslovski@gmail.com>
Closes: #673207
Git-Dch: Full

13 years agoEnhance doc about files sourced from init-functions.
Didier Raboud [Mon, 21 May 2012 12:56:29 +0000 (14:56 +0200)]
Enhance doc about files sourced from init-functions.

13 years agoCorrect comment in init-functions about hooks.
Didier Raboud [Mon, 21 May 2012 12:34:14 +0000 (14:34 +0200)]
Correct comment in init-functions about hooks.

Git-Dch: None

13 years agolsb 4.1+Debian4 Debian release.
Didier Raboud [Fri, 18 May 2012 20:30:19 +0000 (22:30 +0200)]
lsb 4.1+Debian4 Debian release.

13 years agoRevert the constraint on python to >= 2.7.
Didier Raboud [Fri, 18 May 2012 20:27:58 +0000 (22:27 +0200)]
Revert the constraint on python to >= 2.7.

Just don't run the tests on python2.6.

13 years agoMerge branch 'pytests'
Didier Raboud [Tue, 15 May 2012 14:52:15 +0000 (16:52 +0200)]
Merge branch 'pytests'

13 years agoAvoid writing the now useless lsb-qt4.substvars file.
Didier Raboud [Tue, 15 May 2012 14:52:10 +0000 (16:52 +0200)]
Avoid writing the now useless lsb-qt4.substvars file.

13 years agoMove the "left info blocks" code to a hook.
Didier Raboud [Tue, 15 May 2012 09:03:15 +0000 (11:03 +0200)]
Move the "left info blocks" code to a hook.

13 years agoPut the Ubuntu logging functions in the hooks directory.
Didier Raboud [Tue, 15 May 2012 08:56:51 +0000 (10:56 +0200)]
Put the Ubuntu logging functions in the hooks directory.

Add the needed maintscript helper to remove the untouched
lsb-base-logging.sh; including Pre-Dependency on recent-enough dpkg.

13 years agoRead admin's lsb-base-logging.sh after packaged hooks.
Didier Raboud [Tue, 15 May 2012 08:52:51 +0000 (10:52 +0200)]
Read admin's lsb-base-logging.sh after packaged hooks.

Git-Dch: None

13 years agoIn init-functions, include hooks from other packages.
Didier Raboud [Wed, 9 May 2012 12:43:17 +0000 (14:43 +0200)]
In init-functions, include hooks from other packages.

- Add a /lib/lsb/init-functions.d/ empty directory for this purpose.
- Add a lintian override for the above.
- Source any file in there.
- Document that in lsb-base.README.

(This would be used by systemd, at least).

Git-Dch: Full

13 years agoProperly document the first version with init_is_upstart.
Didier Raboud [Wed, 9 May 2012 13:06:17 +0000 (15:06 +0200)]
Properly document the first version with init_is_upstart.

13 years agoPyUT: Run tests with python3 too.
Didier Raboud [Mon, 7 May 2012 17:12:27 +0000 (19:12 +0200)]
PyUT: Run tests with python3 too.

Note: This currently makes the build fail in a non-clean environment without
py3versions available. This is semi-intended and is the easiest way to have
the tests run as python3 too.

13 years agoPyUT: Add template tests for initdutils.py
Didier Raboud [Sun, 6 May 2012 11:25:55 +0000 (13:25 +0200)]
PyUT: Add template tests for initdutils.py

13 years agoPyUT: Skip not implemented tests.
Didier Raboud [Sun, 6 May 2012 11:19:10 +0000 (13:19 +0200)]
PyUT: Skip not implemented tests.

13 years agoPyUT: Implement a unittest for valid_lsb_versions.
Didier Raboud [Sat, 5 May 2012 10:36:53 +0000 (12:36 +0200)]
PyUT: Implement a unittest for valid_lsb_versions.

Take the opportunity to fix its output for cxx in 3.1.

13 years agoPyUT: Add all the lsb_release.py functions as NotImplemented tests.
Didier Raboud [Fri, 4 May 2012 12:42:06 +0000 (14:42 +0200)]
PyUT: Add all the lsb_release.py functions as NotImplemented tests.

13 years agoPyUT: Add a unittest for lookup_codename.
Didier Raboud [Fri, 4 May 2012 12:23:25 +0000 (14:23 +0200)]
PyUT: Add a unittest for lookup_codename.

13 years agoPyUT: Add initial unittest framework, limit possible python versions to >= 2.7.
Didier Raboud [Fri, 4 May 2012 11:41:25 +0000 (13:41 +0200)]
PyUT: Add initial unittest framework, limit possible python versions to >= 2.7.

Limiting the supported python versions to >= 2.6 permits to avoid unneccessary
code to permit the use of unittest in all python 2 and 3 versions such as:

import sys

if sys.version_info[0] >= 3:
import unittest
else:
import unittest2 as unittest

python2.7 is the default version in Debian unstable since Sep 2011.

13 years agolsb 4.1+Debian3 Debian release.
Didier Raboud [Mon, 7 May 2012 17:22:50 +0000 (19:22 +0200)]
lsb 4.1+Debian3 Debian release.

13 years agoDrop empty directory in lsb-base.
Didier Raboud [Sun, 6 May 2012 20:16:27 +0000 (22:16 +0200)]
Drop empty directory in lsb-base.

Instead of moving lsb-base-logging.sh to /etc/lsb/, drop the empty /etc/lsb.

Closes: #671730
Git-Dch: Full

13 years agoBugfix source compression.
Didier Raboud [Fri, 4 May 2012 10:50:53 +0000 (12:50 +0200)]
Bugfix source compression.

Git-Dch: None

13 years agoBugfix init_is_upstart(): use test and full paths.
Didier Raboud [Wed, 2 May 2012 07:29:11 +0000 (09:29 +0200)]
Bugfix init_is_upstart(): use test and full paths.

Git-Dch: None

13 years agoFix typo in lsb-invalid-mta's Description.
Didier Raboud [Wed, 2 May 2012 09:25:47 +0000 (11:25 +0200)]
Fix typo in lsb-invalid-mta's Description.

13 years agoUpdate LSB and packages versions in README.Debian.
Didier Raboud [Tue, 1 May 2012 07:22:02 +0000 (09:22 +0200)]
Update LSB and packages versions in README.Debian.

13 years agoAdd a new helper function: init_is_upstart().
Steve Langasek [Tue, 1 May 2012 06:55:45 +0000 (08:55 +0200)]
Add a new helper function: init_is_upstart().

init_is_upstart() is to be used by init scripts of upstart-aware packages to
render the init script inert when upstart is present.

Signed-off-by: Didier Raboud <odyx@debian.org>
Closes: #661109
Git-Dch: Full

13 years agoCompress the orig source tarball with bzip2.
Didier Raboud [Tue, 24 Apr 2012 20:40:19 +0000 (22:40 +0200)]
Compress the orig source tarball with bzip2.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agolsb 4.1+Debian2 Debian release.
Didier Raboud [Tue, 24 Apr 2012 19:34:41 +0000 (21:34 +0200)]
lsb 4.1+Debian2 Debian release.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoMake sure OPTIND is marked local for each use.
Didier Raboud [Sun, 22 Apr 2012 11:54:31 +0000 (13:54 +0200)]
Make sure OPTIND is marked local for each use.

Closes: #669909
Reported-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoMake the cursor invisible when printing the Fancy output status block.
Didier Raboud [Mon, 23 Apr 2012 13:45:00 +0000 (15:45 +0200)]
Make the cursor invisible when printing the Fancy output status block.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoAvoid two superflous calls to /bin/echo in Fancy output.
Didier Raboud [Mon, 23 Apr 2012 13:35:23 +0000 (15:35 +0200)]
Avoid two superflous calls to /bin/echo in Fancy output.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agolsb 4.1+Debian1 Debian release.
Didier Raboud [Thu, 19 Apr 2012 09:30:43 +0000 (11:30 +0200)]
lsb 4.1+Debian1 Debian release.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoIn killproc(), make sure to exit 0 when the program is not running and when no signal...
Didier Raboud [Thu, 12 Apr 2012 12:13:35 +0000 (14:13 +0200)]
In killproc(), make sure to exit 0 when the program is not running and when no signal was specified.

Closes: #668416
Reported-by: Peter Eisentraut <petere@debian.org>
Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agolsb-base: Enhance documentation of fancy output [....] messages in README.Debian.
Didier Raboud [Tue, 17 Apr 2012 09:52:47 +0000 (11:52 +0200)]
lsb-base: Enhance documentation of fancy output [....] messages in README.Debian.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agolsb-base: Move information from NEWS.Debian to README.Debian.
Didier Raboud [Tue, 17 Apr 2012 09:43:58 +0000 (11:43 +0200)]
lsb-base: Move information from NEWS.Debian to README.Debian.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoMerge branch 'master-experimental'
Didier Raboud [Tue, 17 Apr 2012 09:57:26 +0000 (11:57 +0200)]
Merge branch 'master-experimental'

13 years agopidofproc(): Make sure to try /bin/pidof when no pidfile is specified.
Didier Raboud [Mon, 16 Apr 2012 08:09:09 +0000 (10:09 +0200)]
pidofproc(): Make sure to try /bin/pidof when no pidfile is specified.

Move the pidof-using block inside the conditional to have it run when we know
that the pidfile doesn't exist but before assuming that the program was indeed
using one.

Closes: #668958
Reported-by: Adrian Fita <adrian.fita@gmail.com>
Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agolsb 4.1+Debian0+fancy1 Debian experimental release.
Didier Raboud [Wed, 11 Apr 2012 10:12:26 +0000 (12:12 +0200)]
lsb 4.1+Debian0+fancy1 Debian experimental release.

13 years agoFancy output: prepend [info] blocks to log_action_msg calls.
Didier Raboud [Wed, 4 Apr 2012 12:45:43 +0000 (14:45 +0200)]
Fancy output: prepend [info] blocks to log_action_msg calls.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agolsb 4.1+Debian0+fancy0 Debian experimental release.
Didier Raboud [Sat, 31 Mar 2012 15:53:39 +0000 (17:53 +0200)]
lsb 4.1+Debian0+fancy0 Debian experimental release.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoUpdate lsb-base.README.Debian.
Didier Raboud [Sat, 31 Mar 2012 15:48:19 +0000 (17:48 +0200)]
Update lsb-base.README.Debian.

Signed-off-by: Didier Raboud <odyx@debian.org>
13 years agoMake the init.d scripts messages fancier by prepending them a [....] block.
Didier Raboud [Fri, 30 Mar 2012 12:48:42 +0000 (14:48 +0200)]
Make the init.d scripts messages fancier by prepending them a [....] block.

== Implementation ==

* The logging functions assign the status block as "[....]" when
  printing the log message.
  Concerned functions:
  - log_daemon_msg
  - log_action_begin_msg
  - log_begin_msg (despite not being a documented interface)

* The log message conclusion functions replace the status block by
  either a green [ ok ], a yellow [warn] or a red [FAIL] by
  Concerned functions:
  - log_end_msg

  This is implemented as _pre/_post functions.

== Documentation ==

* lsb-base.README.Debian is updated with the new _pre/_post functions.
* lsb-base.NEWS gets a new entry with information meant for experimental
  users and init.d scripts maintainers.

== Pseudo-headers ==

Closes: #416485
Reported-by: Alessio <alga777@gmail.com>
Not-used-but-useful-patch-by: Alessio <alga777@gmail.com>
Not-used-but-useful-patch-by: Nico Golde <nion@debian.org>
Idea-by: Mehdi Dogguy <mehdi@debian.org>
Signed-off-by: Didier Raboud <odyx@debian.org>