Subject: bug#739: /etc/init.d/slim: fails to stop slim daemon with sysvinit

From: Jan Hamrle <[email-masked]>
Date: Sun, 29 Jan 2023 11:16:12 +0100

Package: slim
Version: 1.3.9-1devuan2
Severity: normal
File: /etc/init.d/slim
X-Debbugs-Cc: [email-masked]

Dear Maintainer,

slim daemon can not be stopped with sysvinit

  # service slim status
  slim is running.
  
  # service slim stop
  Stopping X display manager: slim failed!

Pid file defined in config file (/etc/slim.conf) and in init.d file
(/etc/init.d/slim) are different.

Best regards
   Jan Hamrle

*** bugs/init.d-slim.diff
--- /etc/init.d/slim.dist	2023-01-28 20:17:45.592507155 +0100
+++ /etc/init.d/slim	2023-01-28 22:38:29.086358062 +0100
@@ -22,7 +22,7 @@
 NAME="slim"
 DESC="X display manager"
 DAEMON=/usr/bin/slim
-PIDFILE=/var/run/slim.lock
+PIDFILE=/run/slim.pid
 
 SSD_START_ARGS="--pidfile $PIDFILE --name $(basename $DAEMON) --startas $DAEMON -- -d"
 SSD_STOP_ARGS="--pidfile $PIDFILE --name $(basename $DAEMON) --retry TERM/5/TERM/5"

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 5 (daedalus/ceres)
Release:	5
Codename:	daedalus ceres
Architecture: i686

Kernel: Linux 6.1.0-1-686-pae (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages slim depends on:
ii  dbus                       1.14.4-1devuan1
ii  debconf [debconf-2.0]      1.5.82
ii  libc6                      2.36-8
ii  libgcc-s1                  12.2.0-14
ii  libjpeg62-turbo            1:2.1.2-1+b1
ii  libpam-elogind [logind]    246.10-5
ii  libpam0g                   1.5.2-6
ii  libpng16-16                1.6.39-2
ii  libstdc++6                 12.2.0-14
ii  libx11-6                   2:1.8.3-3
ii  libxext6                   2:1.3.4-1+b1
ii  libxft2                    2.3.6-1
ii  libxmu6                    2:1.1.3-3
ii  libxrandr2                 2:1.5.2-2+b1
ii  lsb-base                   11.5
ii  sysvinit-utils [lsb-base]  3.06-2devuan1
ii  x11-xserver-utils          7.7+9+b1

Versions of packages slim recommends:
ii  xterm  378-1

Versions of packages slim suggests:
ii  scrot  1.8.1-1
ii  xauth  1:1.1.1-1

-- Configuration Files:
/etc/init.d/slim changed [not included]

-- debconf information:
* shared/default-x-display-manager: slim
  slim/daemon_name: /usr/bin/slim

---

From: Rob Pearce <[email-masked]>
Date: Sun, 29 Jan 2023 19:49:41 +0000

> +++ /etc/init.d/slim	2023-01-28 22:38:29.086358062 +0100

Thank you for this report and patch. I will apply it to the current 
development.

This was entirely my mistake - I'd changed the upstream default over a 
year ago, as some other distros were already patching it to the now more 
common form, but just failed to spot the reference when I updated the 
Devuan package.

Thanks,

Rob

-- 
Maintainer of the <href="https://sourceforge.net/projects/slim-fork/">SLiM Login Manager fork</a>

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Mon, 30 Jan 2023 07:24:03 +0000

This is an automatic notification regarding your bug report
which was filed against the slim package:

#739: /etc/init.d/slim: fails to stop slim daemon with sysvinit

It has been closed by Mark Hindley <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <[email-masked]> by
replying to this email.

-- 
739: https://bugs.devuan.org/cgi/bugreport.cgi?bug=739
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [devuan-dev] bug#739: bug#739: /etc/init.d/slim: fails to stop slim daemon with sysvinit
From: Mark Hindley <[email-masked]>
To: Rob Pearce <[email-masked]>, [email-masked]
Date: Mon, 30 Jan 2023 07:21:05 +0000

Version: 1.4.0-0devuan2

Manually closing as fixed.

Mark

Subject: /etc/init.d/slim: fails to stop slim daemon with sysvinit
From: Jan Hamrle <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Sun, 29 Jan 2023 11:16:12 +0100

Package: slim
Version: 1.3.9-1devuan2
Severity: normal
File: /etc/init.d/slim

Dear Maintainer,

  # service slim status
  slim is running.
  
  # service slim stop

Best regards
   Jan Hamrle

-- System Information:
Distributor ID:	Devuan

-- Configuration Files:

-- debconf information: