Bug 98807 - apm resume does not restart network if default locale specifies non-english LC_MESSAGES
Summary: apm resume does not restart network if default locale specifies non-english L...
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
(Show other bugs)
Version: 9
Hardware: All Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2003-07-09 00:22 UTC by Martin Kuehl
Modified: 2014-03-17 02:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-07-09 01:47:12 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch to /etc/sysconfig/apm-scripts/apmscript (579 bytes, patch)
2003-07-09 00:23 UTC, Martin Kuehl
no flags Details | Diff

Description Martin Kuehl 2003-07-09 00:22:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030530 Galeon/1.3.5

Description of problem:
The apm resume script depends on `init.d/network status` to print english
message. It tries to workaround this by specifying LC_ALL=C as part of the
command-line (see: /etc/sysconfig/apm-scripts/apmscript, line 115), but that
value is ignored as /etc/init.d/network sources /etc/init.d/functions before
execution and thus overrides the specified locale with the default locale.
The resulting messages aren't parsed correctly by apmscript and so it doesn't
know which netdevices to restart upon resume.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. edit /etc/sysconfig/i18n and set LANG to non-english, non-asian value (e.g.
2. edit /etc/sysconfig/apmd and set NET_RESTART to yes
3. suspend computer
4. resume computer: network will be down
5. (alternatively to 2./3./4.) run "LC_ALL=C /etc/init.d/network/status":
Messages will be non-english

Actual Results:  network is down

Expected Results:  network should have been restarted

Additional info:

this is easily fixed by modifying /etc/sysconfig/apm-scripts/apmscript a little,
see attachment

Comment 1 Martin Kuehl 2003-07-09 00:23:57 UTC
Created attachment 92811 [details]
proposed patch to /etc/sysconfig/apm-scripts/apmscript

this changes the command in line 115 so that any (default) locale will be
ignored in /etc/init.d/functions
This way, Messages aill be in english and thus readable, enabling net_restart
upon resume

Comment 2 Bill Nottingham 2003-07-09 01:47:12 UTC
This should be already fixed in rawhide apmd.

Note You need to log in before you can comment on or make changes to this bug.