pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lpjs: Add lpjs user and group for dispatch daemon
Module Name: pkgsrc-wip
Committed By: Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By: outpaddling
Date: Mon Mar 18 18:40:46 2024 -0500
Changeset: 56a67532c002bc68ec32179a41a5c9f5a14f1c6c
Modified Files:
lpjs/Makefile
lpjs/files/lpjs_dispatchd.sh
Log Message:
lpjs: Add lpjs user and group for dispatch daemon
Does not need to run as root
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=56a67532c002bc68ec32179a41a5c9f5a14f1c6c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lpjs/Makefile | 4 ++++
lpjs/files/lpjs_dispatchd.sh | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diffs:
diff --git a/lpjs/Makefile b/lpjs/Makefile
index 9bba58efad..11a646f3ee 100644
--- a/lpjs/Makefile
+++ b/lpjs/Makefile
@@ -28,6 +28,10 @@ EGDIR= ${PREFIX}/share/examples/lpjs
OWN_DIRS= ${PKG_SYSCONFDIR}/lpjs
CONF_FILES= ${EGDIR}/config.sample ${PKG_SYSCONFDIR}/lpjs/config
+PKG_GROUPS= lpjs
+PKG_USERS= lpjs:lpjs
+PKG_GECOS.slurm= LPJS daemon
+PKG_SHELL.slurm= ${NOLOGIN}
RCD_SCRIPTS+= lpjs_dispatchd lpjs_compd
INSTALLATION_DIRS= share/examples/lpjs
diff --git a/lpjs/files/lpjs_dispatchd.sh b/lpjs/files/lpjs_dispatchd.sh
index f5c4f6638c..59babe4664 100644
--- a/lpjs/files/lpjs_dispatchd.sh
+++ b/lpjs/files/lpjs_dispatchd.sh
@@ -17,7 +17,7 @@ sig_stop="-INT"
lpjs_start()
{
echo "Starting $name..."
- $command --daemonize
+ $command --daemonize --user lpjs --group lpjs
}
lpjs_stop()
Home |
Main Index |
Thread Index |
Old Index