From owner-svn-ports-head@freebsd.org Sun Feb 12 16:37:00 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D514FCDC732; Sun, 12 Feb 2017 16:37:00 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1C0D1663; Sun, 12 Feb 2017 16:37:00 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1CGax0Q046536; Sun, 12 Feb 2017 16:36:59 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1CGax87046534; Sun, 12 Feb 2017 16:36:59 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201702121636.v1CGax87046534@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Sun, 12 Feb 2017 16:36:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433952 - in head/x11/lightdm: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2017 16:37:00 -0000 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"