blob: 8b4e5010f3f6597782fe2eebc45fd99ac0ad27e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
opts="reload"
[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm
depend() {
local _need="net"
[ ${SLURM_USE_MUNGE} -ne 0 ] && _need="${_need} munged"
after logger
need ${_need}
}
checkconfig() {
if [ ! -e "/etc/slurm/slurm.conf" ]; then
eerror "Missing config /etc/slurm/slurm.conf"
eerror "Customize sample one or generate new by configurator.html"
eerror "in slurm doc directory"
return 1
fi
}
start() {
ebegin "Starting slurm control daemon"
start-stop-daemon --start --quiet --background \
--pidfile /var/run/slurmctld.pid \
--user slurm \
--group slurm \
--exec /usr/sbin/slurmctld -- ${SLURMCTLD_OPTS}
eend $?
}
stop() {
ebegin "Stopping slurm control daemon"
start-stop-daemon --stop --pidfile /var/run/slurmctld.pid
eend $?
}
reload() {
ebegin "Reloading slurm daemon configuration"
killproc slurmctld -HUP
eend $?
}
|