Bug 703834 - Debian rhnsd init script not ok
Summary: Debian rhnsd init script not ok
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space18
TreeView+ depends on / blocked
 
Reported: 2011-05-11 11:47 UTC by David Hrbáč
Modified: 2012-11-01 16:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-18 13:35:11 UTC
Embargoed:


Attachments (Terms of Use)

Description David Hrbáč 2011-05-11 11:47:01 UTC
Description of problem:

Init script is not able to stop the daemon.
simon-test:~# /etc/init.d/rhnsd stop
$Stopping Red Hat Network Daemon: /etc/init.d/rhnsd: 106: Bad substitution
simon-test:~# /etc/init.d/rhnsd status
$rhnsd (pid 14712) is running...
simon-test:~# pgrep -l rhnsd
14712 rhnsd


Version-Release number of selected component (if applicable):
simon-test:~# cat /etc/debian_version
6.0.1
rhnsd 0.5.14-6

Comment 1 Jan Pazdziora 2011-07-20 11:53:23 UTC
Aligning under space16.

Comment 2 Miroslav Suchý 2011-10-21 14:59:19 UTC
I tested it wheeze/sid and it works like a charm.
I had to manualy create /var/lock/subsys, but then it worked. I did not get the error "Bad substitution" string neither without missing /var/lock/subsys directory.
I'm not going to test Lenny as there are more known problem, which we are not going fix.
When I start with Debian support, I targeted Wheeze release. Older releases are not supported.
But of course, patches are welcome, if you care about Lenny. But be aware that there will be more problems.

Comment 3 David Hrbáč 2011-10-26 12:27:14 UTC
Well, not sure what Debian version you are talking about. Stable is squeeze. The point is, that it DOES NOT work well on stable. 

simon-test:~# cat /etc/debian_version
6.0.3
simon-test:~# ls -al /var/lock/subsys/
total 8
drwxr-xr-x 2 root root 4096 Jun  9 11:51 .
drwxrwxrwt 4 root root 4096 Oct 26 06:25 ..
-rw-r--r-- 1 root root    0 Jun  9 11:51 rhnsd
-rw-r--r-- 1 root root    0 Jun  9 11:51 vmware-tools
simon-test:~# /etc/init.d/rhnsd restart
$Stopping Red Hat Network Daemon: /etc/init.d/rhnsd: 106: Bad substitution

Comment 4 Miroslav Suchý 2011-10-26 15:38:10 UTC
sorry in #2 should be s/lenny/squeeze/.
We were targeting Wheeze. No one tested Squeeze.

Comment 5 David Hrbáč 2011-10-29 15:29:49 UTC
(In reply to comment #4)
> sorry in #2 should be s/lenny/squeeze/.
> We were targeting Wheeze. No one tested Squeeze.

I see no point in aiming at the testing Debian. I guess you can't expect much feedback from users community on deb support this way. Stable version Debian is going to be installed on production servers everywhere.

Comment 6 Miroslav Suchý 2012-03-08 13:37:25 UTC
To summarize this. The workaround is
mkdir /var/lock/subsys
apt-get install sleepenh
ln -s /usr/bin/sleepenh /usr/bin/usleep

Comment 7 Jan Pazdziora 2012-03-16 14:40:23 UTC
This issue is currently blocked by lack of active maintenance of the Debian packages:

https://www.redhat.com/archives/spacewalk-list/2012-March/msg00051.html

If we don't find a volunteer soon, we'll have to close this bugzilla without resolution.

Comment 8 Miroslav Suchý 2012-06-18 13:35:11 UTC
We pushed new rhnsd with completly rewritten init script to Debian. Package should appear in Sid this week and in aprox. two months in stable.


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