svn commit: r433952 - in head/x11/lightdm: . files
Ben Woods
woodsb02 at FreeBSD.org
Sun Feb 12 16:37:00 UTC 2017
Author: woodsb02
Date: Sun Feb 12 16:36:59 2017
New Revision: 433952
URL: https://svnweb.freebsd.org/changeset/ports/433952
Log:
x11/lightdm: Improve rc script to use daemon(8)
This fixes an issue noticed when sysutils/bsdstats was installed and
enabled at runtime in /etc/rc.conf, but for whatever reason was failing
to send the updated statistics. Upon failing, the lightdm process would
receive a SIGHUP, causing it to stop seconds after the login screen was
displayed (before the user even had a chance to login).
Modified:
head/x11/lightdm/Makefile
head/x11/lightdm/files/lightdm.in
Modified: head/x11/lightdm/Makefile
==============================================================================
--- head/x11/lightdm/Makefile Sun Feb 12 15:50:52 2017 (r433951)
+++ head/x11/lightdm/Makefile Sun Feb 12 16:36:59 2017 (r433952)
@@ -3,7 +3,7 @@
PORTNAME= lightdm
PORTVERSION= 1.20.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11
MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/
Modified: head/x11/lightdm/files/lightdm.in
==============================================================================
--- head/x11/lightdm/files/lightdm.in Sun Feb 12 15:50:52 2017 (r433951)
+++ head/x11/lightdm/files/lightdm.in Sun Feb 12 16:36:59 2017 (r433952)
@@ -22,8 +22,9 @@ load_rc_config ${name}
: ${lightdm_enable:="NO"}
-command="%%PREFIX%%/sbin/${name}"
+command="/usr/sbin/daemon"
+procname="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
-command_args="--pid-file=${pidfile} > /dev/null 2>&1 &"
+command_args="-f ${procname} --pid-file=${pidfile}"
run_rc_command "$1"
More information about the svn-ports-head
mailing list