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
Aligning under space16.
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.
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
sorry in #2 should be s/lenny/squeeze/. We were targeting Wheeze. No one tested Squeeze.
(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.
To summarize this. The workaround is mkdir /var/lock/subsys apt-get install sleepenh ln -s /usr/bin/sleepenh /usr/bin/usleep
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.
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.