diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-11-23 15:42:24 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-11-23 15:42:24 +0000 |
commit | 6e746d3bd55476f9571416f2c1e50db8078ea821 (patch) | |
tree | 9268730edcd5ad4c0afca879c29e3f5464295968 /x11/pcdm | |
parent | 79e2debe223ece27377cb66ecde0b980a9c96f35 (diff) |
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
MFH: 2019Q4
Sponsored by: vBSDcon 2019
Notes
Notes:
svn path=/head/; revision=518248
Diffstat (limited to 'x11/pcdm')
-rw-r--r-- | x11/pcdm/Makefile | 2 | ||||
-rw-r--r-- | x11/pcdm/files/patch-rc.d_pcdm | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/x11/pcdm/Makefile b/x11/pcdm/Makefile index 8b0aa5668ec5..f3b3152d0dc6 100644 --- a/x11/pcdm/Makefile +++ b/x11/pcdm/Makefile @@ -2,7 +2,7 @@ PORTNAME= pcdm PORTVERSION= 201710031254 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11 MAINTAINER= jt@ixsystems.com diff --git a/x11/pcdm/files/patch-rc.d_pcdm b/x11/pcdm/files/patch-rc.d_pcdm new file mode 100644 index 000000000000..1d8ba77d7d3a --- /dev/null +++ b/x11/pcdm/files/patch-rc.d_pcdm @@ -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 + } + |