gsm-utils daemon cannot start due to init.d bug

Bug #1354335 reported by Christoph Haas on 2014-08-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gsmlib (Ubuntu)
Undecided
Unassigned

Bug Description

The gsm-utils daemon in Ubuntu 12.04 (precise) can't be started du to a problem in the order of commands in the init.d script.

This patch will fix it:

23,26d22
< if [ "$RUNGSMSMS" != "yes" ];then
< echo "GSM SMS deamon not yet configured. Edit /etc/default/gsm-utils first."
< exit 0
< fi
37a34,38
>
> if [ "$RUNGSMSMS" != "yes" ];then
> echo "GSM SMS deamon not yet configured. Edit /etc/default/gsm-utils first."
> exit 0
> fi

The cause of the problem is that

   "$RUNGSMSMS" != "yes"

is checked before the actual /etc/default/gsm-utils file is sourced using

   test -r /etc/default/gsm-utils && . /etc/default/gsm-utils # for overwriting some parameters

This is easy to fix but basically renders the daemon process unusuable.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gsm-utils (not installed)
Uname: Linux 3.15.3-031503-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Aug 8 10:35:44 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-01 (37 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
SourcePackage: gsmlib
UpgradeStatus: No upgrade log present (probably fresh install)

Christoph Haas (chaas) wrote :
tags: added: precise
removed: apport-bug trusty
Christoph Haas (chaas) wrote :

Ignore the ProcEnviron.txt please. I created the bug report from my laptop but it affects an Ubuntu 12.04 LTS server.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments