summaryrefslogtreecommitdiff
blob: b8d747e1c4b898498e3947727db156afd1e5d939 (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
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.3 2011/07/03 23:19:35 alexxy Exp $

depend() {
    need net
    after pbs_server slurmctld
    before pbs_mom slurmd
    after logger
}

start() {
    ebegin "Starting Maui scheduler"
    start-stop-daemon --start --exec /usr/sbin/maui 
    eend ${?}		
}

stop() {
    ebegin "Stopping Maui scheduler"
    start-stop-daemon --stop -p /var/spool/maui/maui.pid
    eend ${?}
}
# vim:ts=4