MFH: r518248

x11/pcdm: Fix rc script for FreeBSD

PCDM doesn't daemonize/fork, so we need to handle this by using
daemon(8). It seems this port has only been used/tested on TrueOS with
OpenRC, so it has been broken in FreeBSD ports for the last two years.

PR:		227034
Reported by:	VulcanRider
Approved by:	just fix it
Sponsored by:	vBSDcon 2019

Approved by:	ports-secteam (blanket, runtime fix)
This commit is contained in:
Mark Felder 2019-11-23 15:45:23 +00:00
parent 7c749bf676
commit 1756ef3774
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q4/; revision=518249
2 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= pcdm
PORTVERSION= 201710031254
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11
MAINTAINER= jt@ixsystems.com

View File

@ -0,0 +1,11 @@
--- rc.d/pcdm.orig 2019-11-22 22:45:57 UTC
+++ rc.d/pcdm
@@ -51,7 +51,7 @@ pcdm_start()
echo "Starting PCDM."
#Start the PCDM login daemon
if [ ! -e /var/run/nologin ]; then
- ${command} ${pcdm_flags}
+ /usr/sbin/daemon -S -T pcdm ${command} ${pcdm_flags}
fi
}