pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/parallel/slurm Add rc.subr control scripts.
details: https://anonhg.NetBSD.org/pkgsrc/rev/00d2437009dd
branches: trunk
changeset: 639455:00d2437009dd
user: asau <asau%pkgsrc.org@localhost>
date: Sat Sep 13 16:49:27 2014 +0000
description:
Add rc.subr control scripts.
diffstat:
parallel/slurm/Makefile | 6 ++++--
parallel/slurm/files/slurmctld.sh | 15 +++++++++++++++
parallel/slurm/files/slurmd.sh | 17 +++++++++++++++++
3 files changed, 36 insertions(+), 2 deletions(-)
diffs (62 lines):
diff -r 394438981318 -r 00d2437009dd parallel/slurm/Makefile
--- a/parallel/slurm/Makefile Sat Sep 13 16:47:56 2014 +0000
+++ b/parallel/slurm/Makefile Sat Sep 13 16:49:27 2014 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2014/05/29 23:37:14 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2014/09/13 16:49:27 asau Exp $
DISTNAME= slurm-2.6.4
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= parallel
MASTER_SITES= http://www.schedmd.com/download/archive/ \
http://www.schedmd.com/download/latest/ \
@@ -30,6 +30,8 @@
PKG_GECOS.slurm= SLURM user
PKG_SHELL.slurm= $(NOLOGIN)
+RCD_SCRIPTS+= slurmd slurmctld
+
post-install:
$(INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/share/examples/$(PKGBASE)
$(INSTALL_DATA) $(WRKSRC)/etc/* $(DESTDIR)$(PREFIX)/share/examples/$(PKGBASE)/
diff -r 394438981318 -r 00d2437009dd parallel/slurm/files/slurmctld.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/slurm/files/slurmctld.sh Sat Sep 13 16:49:27 2014 +0000
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+# $NetBSD: slurmctld.sh,v 1.1 2014/09/13 16:49:27 asau Exp $
+#
+# PROVIDE: slurmctld
+# REQUIRE: DAEMON munge
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="slurmctld"
+rcvar=${name}
+command="@PREFIX@/sbin/slurmctld"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 394438981318 -r 00d2437009dd parallel/slurm/files/slurmd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/slurm/files/slurmd.sh Sat Sep 13 16:49:27 2014 +0000
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+# $NetBSD: slurmd.sh,v 1.1 2014/09/13 16:49:27 asau Exp $
+#
+# PROVIDE: slurmd
+# REQUIRE: DAEMON munge
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="slurmd"
+rcvar=${name}
+command="@PREFIX@/sbin/slurmd"
+
+slurmd_user="slurm"
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index