diff options
author | Ben Woods <woodsb02@FreeBSD.org> | 2017-02-12 16:36:59 +0000 |
---|---|---|
committer | Ben Woods <woodsb02@FreeBSD.org> | 2017-02-12 16:36:59 +0000 |
commit | 25ea7cceab81d01f7d5495daacab5c1cbce57f8b (patch) | |
tree | 975b32b9a43ebc8110c85923d6f0a5c7a8f6c452 /x11/lightdm/files | |
parent | sysutils/polkit: Fix directory permissions to allow reading config files (diff) |
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).
Diffstat (limited to 'x11/lightdm/files')
-rw-r--r-- | x11/lightdm/files/lightdm.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/x11/lightdm/files/lightdm.in b/x11/lightdm/files/lightdm.in index 227abd106976..734276d218b0 100644 --- a/x11/lightdm/files/lightdm.in +++ b/x11/lightdm/files/lightdm.in @@ -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" |