set a logdir to prevent spewing to STDOUT/STDERR

This commit is contained in:
jasper 2017-08-09 15:23:07 +00:00
parent 2bb5f18090
commit 998194d358
3 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/08/09 14:39:32 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2017/08/09 15:23:07 jasper Exp $
COMMENT = RESTful DICOM server for healthcare and medical research
DISTNAME = Orthanc-1.3.0
PKGNAME = ${DISTNAME:L}
REVISION = 0
HOMEPAGE = http://www.orthanc-server.com/

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/08/09 14:39:32 jasper Exp $
@comment $OpenBSD: PLIST,v 1.2 2017/08/09 15:23:07 jasper Exp $
@newgroup _orthanc:791
@newuser _orthanc:791:_orthanc:daemon:Orthanc user:/nonexistent:/sbin/nologin
@bin bin/OrthancRecoverCompressedFile
@ -18,6 +18,7 @@ share/examples/orthanc/Configuration.json
@owner _orthanc
@group _orthanc
@sample ${VARBASE}/orthanc/
@sample /var/log/orthanc/
@group
@owner
@rcscript ${RCDIR}/orthanc

View File

@ -1,9 +1,9 @@
#!/bin/sh
#
# $OpenBSD: orthanc.rc,v 1.1.1.1 2017/08/09 14:39:32 jasper Exp $
# $OpenBSD: orthanc.rc,v 1.2 2017/08/09 15:23:07 jasper Exp $
daemon="${PREFIX}/sbin/Orthanc"
daemon_flags="${SYSCONFDIR}/orthanc/Configuration.json"
daemon_flags="--logdir=/var/log/orthanc ${SYSCONFDIR}/orthanc/"
daemon_user="_orthanc"
. /etc/rc.d/rc.subr