FS#18369 - [kdebase-workspace] Wrong pid file for kdm

Attached to Project: Arch Linux
Opened by Cedric Bellegarde (gnumdk) - Wednesday, 17 February 2010, 08:35 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 26 February 2010, 20:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

kdm use /var/run/daemon/kdm.pid instead of /var/run/daemon/kdm/kdm.pid.

This make rc.shutdown to show an error message about kdm.pid on shutdown.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 26 February 2010, 20:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  ON TRUNK
Comment by Andrea Scarpino (BaSh) - Friday, 26 February 2010, 05:43 GMT
You do not report kdebase-workspace version. I think you was using kdebase-workspace 4.4.0-3, then you upgraded to 4.4.0-4.
The -4 checks the pid file into /var/run/daemon/kdm.pid, but if you started kdm using -3 that file was in /var/run/daemon/kdm.pid.
Comment by Cedric Bellegarde (gnumdk) - Friday, 26 February 2010, 20:19 GMT
# Find daemons NOT in the DAEMONS array. Shut these down first
if [ -d /var/run/daemons ]; then
for daemon in $(/bin/ls -1t /var/run/daemons); do
if ! in_array $daemon ${DAEMONS[@]}; then
stop_daemon $daemon
fi
done
fi

This code is in rc.shutdown, this code make a call on /etc/rc.d/kdm.pid because there is a kdm.pid file in /var/run/daemons.

Loading...