Bug 3315 - init script fails to stop slimserver on Fedora Core 5
: init script fails to stop slimserver on Fedora Core 5
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: RPM
: 6.2.2
: All RedHat Linux
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-24 12:03 UTC by Kevin Pearsall
Modified: 2008-09-15 14:38 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2006-04-24 12:03:21 UTC
changed /etc/init.d/slimserver to perform #!/bin/bash -x...  what other information do you want?  this was reproduced on an intel mac using Parallels with Fedora Core 5, vanilla installation with developer tools (since it required me to run the build-perl-modules.pl script)

[root@localhost ~]# service slimserver stop
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/sysconfig/i18n
+++ LANG=en_US.UTF-8
+++ SYSFONT=latarcyrheb-sun16
++ '[' pty '!=' pty ']'
++ '[' -n '' ']'
++ export LANG
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ GRAPHICAL=yes
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ LOGLEVEL=3
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
+ . /etc/sysconfig/network
++ NETWORKING=yes
++ HOSTNAME=localhost.localdomain
+ '[' -f /etc/sysconfig/slimserver ']'
+ . /etc/sysconfig/slimserver
++ SLIMSERVER_USER=slimserver
++ SLIMSERVER_HOME=/usr/local/slimserver
++ SLIMSERVER_CFG=/etc/slimserver.conf
++ SLIMSERVER_LOG=/tmp/slimserver.log
++ SLIMSERVER_ARGS='--daemon --prefsfile=/etc/slimserver.conf --logfile=/tmp/slimserver.log'
+ '[' yes = no ']'
+ RETVAL=0
+ prog=SLIMSERVER
+ SLIMSERVER_BIN=/usr/local/slimserver/slimserver.pl
+ '[' -x /usr/local/slimserver/slimserver.pl -a -f /etc/slimserver.conf ']'
+ case "$1" in
+ stop
+ echo -n 'Shutting down SlimServer: '
Shutting down SlimServer: + killproc /usr/local/slimserver/slimserver.pl
+ local RC killlevel= base pid pid_file=
+ RC=0
+ '[' 1 -eq 0 ']'
+ '[' /usr/local/slimserver/slimserver.pl = -p ']'
+ '[' -n '' ']'
+ base=slimserver.pl
+ __pids_var_run /usr/local/slimserver/slimserver.pl ''
+ local base=slimserver.pl
+ local pid_file=/var/run/slimserver.pl.pid
+ pid=
+ '[' -f /var/run/slimserver.pl.pid ']'
+ return 3
+ '[' -z '' -a -z '' ']'
++ __pids_pidof /usr/local/slimserver/slimserver.pl
++ pidof -c -o 3138 -o 3135 -o %PPID -x /usr/local/slimserver/slimserver.pl
++ pidof -c -o 3138 -o 3135 -o %PPID -x slimserver.pl
+ pid=
+ '[' -n '' ']'
+ '[' -n '' -a -n '' ']'
+ failure 'slimserver.pl shutdown'
+ rc=1
+ '[' color '!=' verbose -a -z '' ']'
+ echo_failure
+ '[' color = color ']'
+ echo -en '\033[60G'
                                                           + echo -n '['
[+ '[' color = color ']'
+ echo -en '\033[0;31m'
+ echo -n FAILED
FAILED+ '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 1
+ '[' -x /usr/bin/rhgb-client ']'
+ /usr/bin/rhgb-client --details=yes
+ '[' -w /var/gdm/.gdmfifo ']'
+ echo BOOTUP_ERRORS
+ return 1
+ RC=0
+ '[' -z '' ']'
+ rm -f /var/run/slimserver.pl.pid
+ return 0
+ RETVAL=0
+ echo

+ '[' 0 -eq 0 ']'
+ rm -f /var/lock/subsys/slimserver
+ return 0
+ exit 0
Comment 1 Kevin Pearsall 2006-04-24 12:06:37 UTC
running 'service slimserver status' also says that slimserver is not running, when it actually is...
Comment 2 Dan Sully 2006-04-24 12:38:29 UTC
Fixed earlier today