diff options
Diffstat (limited to 'sys-cluster/maui/files/maui.initd')
-rw-r--r-- | sys-cluster/maui/files/maui.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-cluster/maui/files/maui.initd b/sys-cluster/maui/files/maui.initd new file mode 100644 index 000000000000..fd7b7e0cc3db --- /dev/null +++ b/sys-cluster/maui/files/maui.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 |