use the _rt user for the daemon and make sure that the rc script's pexp
catches both the standalone and fcgi mode
This commit is contained in:
parent
13b4801a7f
commit
a5dd9f507c
@ -1,10 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.44 2019/08/18 09:14:44 robert Exp $
|
||||
# $OpenBSD: Makefile,v 1.45 2019/08/25 12:07:48 robert Exp $
|
||||
|
||||
COMMENT= industrial-grade ticketing system
|
||||
|
||||
DISTNAME= rt-4.4.4
|
||||
CATEGORIES= www
|
||||
|
||||
REVISION= 0
|
||||
|
||||
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
||||
|
||||
HOMEPAGE= http://www.bestpractical.com/rt/
|
||||
|
@ -1,4 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.24 2019/08/18 09:14:44 robert Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.25 2019/08/25 12:07:48 robert Exp $
|
||||
@newgroup _rt:841
|
||||
@newuser _rt:841:_rt:daemon:RT Account:/nonexistent:/sbin/nologin
|
||||
@rcscript ${RCDIR}/rt
|
||||
@sample ${SYSCONFDIR}/rt3/
|
||||
@sample ${SYSCONFDIR}/rt3/local/
|
||||
@ -519,11 +521,19 @@ share/examples/rt3/
|
||||
@mode 0444
|
||||
share/examples/rt3/RT_Config.pm
|
||||
@mode 0600
|
||||
@owner _rt
|
||||
@group _rt
|
||||
@sample ${SYSCONFDIR}/rt3/RT_Config.pm
|
||||
@owner
|
||||
@group
|
||||
@mode 0444
|
||||
share/examples/rt3/RT_SiteConfig.pm
|
||||
@mode 0600
|
||||
@owner _rt
|
||||
@group _rt
|
||||
@sample ${SYSCONFDIR}/rt3/RT_SiteConfig.pm
|
||||
@owner
|
||||
@group
|
||||
@mode 0400
|
||||
share/examples/rt3/acl.Oracle
|
||||
@mode
|
||||
@ -2447,7 +2457,7 @@ share/rt3/static/js/supersubs.js
|
||||
share/rt3/static/js/titlebox-state.js
|
||||
share/rt3/static/js/util.js
|
||||
@mode 770
|
||||
@owner www
|
||||
@owner _rt
|
||||
@group www
|
||||
@sample /var/www/rt3/
|
||||
@sample /var/www/rt3/mason_data/
|
||||
|
@ -1,12 +1,13 @@
|
||||
#!/bin/ksh
|
||||
#
|
||||
# $OpenBSD: rt.rc,v 1.6 2018/01/11 19:27:12 rpe Exp $
|
||||
# $OpenBSD: rt.rc,v 1.7 2019/08/25 12:07:49 robert Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/rt-server"
|
||||
daemon_user="_rt"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="/usr/bin/perl -w ${daemon}.fcgi"
|
||||
pexp=".*perl.*(${daemon}|perl-fcgi-pm).*"
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user