pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lpjs: Add systemd startup scripts (not yet installed or tested)



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon@centos7.local>
Pushed By:	outpaddling
Date:		Tue Jan 25 07:36:15 2022 -0600
Changeset:	65d8dab092f3d373cc1907ae0f375adecc9e2edf

Added Files:
	lpjs/files/lpjs_compd.systemd.service.in
	lpjs/files/lpjs_compd.systemd.sysconfig.in
	lpjs/files/lpjs_dispatchd.systemd.service.in
	lpjs/files/lpjs_dispatchd.systemd.sysconfig.in

Log Message:
lpjs: Add systemd startup scripts (not yet installed or tested)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=65d8dab092f3d373cc1907ae0f375adecc9e2edf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lpjs/files/lpjs_compd.systemd.service.in       | 19 +++++++++++++++++++
 lpjs/files/lpjs_compd.systemd.sysconfig.in     |  4 ++++
 lpjs/files/lpjs_dispatchd.systemd.service.in   | 19 +++++++++++++++++++
 lpjs/files/lpjs_dispatchd.systemd.sysconfig.in |  4 ++++
 4 files changed, 46 insertions(+)

diffs:
diff --git a/lpjs/files/lpjs_compd.systemd.service.in b/lpjs/files/lpjs_compd.systemd.service.in
new file mode 100644
index 0000000000..85eb15d01c
--- /dev/null
+++ b/lpjs/files/lpjs_compd.systemd.service.in
@@ -0,0 +1,19 @@
+[Unit]
+Description=LPJS job compute node service
+Documentation=man:lpjs_compd(8)
+After=network.target
+After=time-sync.target
+
+[Service]
+Type=forking
+EnvironmentFile=-@sysconfigdir@/lpjs_compd
+ExecStart=@sbindir@/lpjs_compd $OPTIONS
+PIDFile=@runstatedir@/lpjs/lpjs_compd.pid
+RuntimeDirectory=lpjs
+RuntimeDirectoryMode=0755
+User=root
+Group=root
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/lpjs/files/lpjs_compd.systemd.sysconfig.in b/lpjs/files/lpjs_compd.systemd.sysconfig.in
new file mode 100644
index 0000000000..845dfa8e69
--- /dev/null
+++ b/lpjs/files/lpjs_compd.systemd.sysconfig.in
@@ -0,0 +1,4 @@
+# MUNGE configuration
+
+# Pass additional command-line options to lpjs_compd.
+OPTIONS="--daemonize"
diff --git a/lpjs/files/lpjs_dispatchd.systemd.service.in b/lpjs/files/lpjs_dispatchd.systemd.service.in
new file mode 100644
index 0000000000..aa6d4d1f94
--- /dev/null
+++ b/lpjs/files/lpjs_dispatchd.systemd.service.in
@@ -0,0 +1,19 @@
+[Unit]
+Description=LPJS job dispatch service
+Documentation=man:lpjs_dispatchd(8)
+After=network.target
+After=time-sync.target
+
+[Service]
+Type=forking
+EnvironmentFile=-@sysconfigdir@/lpjs_dispatchd
+ExecStart=@sbindir@/lpjs_dispatchd $OPTIONS
+PIDFile=@runstatedir@/lpjs/lpjs_dispatchd.pid
+RuntimeDirectory=lpjs
+RuntimeDirectoryMode=0755
+User=root
+Group=root
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/lpjs/files/lpjs_dispatchd.systemd.sysconfig.in b/lpjs/files/lpjs_dispatchd.systemd.sysconfig.in
new file mode 100644
index 0000000000..44ad32698b
--- /dev/null
+++ b/lpjs/files/lpjs_dispatchd.systemd.sysconfig.in
@@ -0,0 +1,4 @@
+# MUNGE configuration
+
+# Pass additional command-line options to lpjs_dispatchd.
+OPTIONS="--daemonize"


Home | Main Index | Thread Index | Old Index