diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-11-03 15:36:09 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-11-03 15:36:09 +0000 |
commit | f1724a024b640f0dad848d17db133ef635a1c6f0 (patch) | |
tree | 37a7b08ac7dd87e362f3157ce974f58d7bc5036e /testing/corosync/corosync.initd | |
parent | 5dec50abbdfe2c9bc7e96c0601ee5896227da11f (diff) | |
download | aports-f1724a024b640f0dad848d17db133ef635a1c6f0.tar.bz2 aports-f1724a024b640f0dad848d17db133ef635a1c6f0.tar.xz |
testing/corosync: new aport
Diffstat (limited to 'testing/corosync/corosync.initd')
-rw-r--r-- | testing/corosync/corosync.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/corosync/corosync.initd b/testing/corosync/corosync.initd new file mode 100644 index 0000000000..6c134bd937 --- /dev/null +++ b/testing/corosync/corosync.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v 1.2 2010/11/17 07:07:03 xarthisius Exp $ + +depend() { + need net + use logger +} + +start() { + ebegin "Starting Corosync Cluster Engine" + start-stop-daemon --start -q --exec /usr/sbin/corosync \ + --pidfile /var/run/corosync.pid --make-pidfile --background \ + -- -f + eend $? +} + +stop() { + ebegin "Stopping Corosync Cluster Engine" + start-stop-daemon --stop -q --pidfile /var/run/corosync.pid + eend $? +} |