summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2004-08-31 15:49:44 +0000
committerMichael Imhof <tantive@gentoo.org>2004-08-31 15:49:44 +0000
commitfc12e0f27b1d2e5f004d9fce16d311c32142bc9b (patch)
tree3bd1dbf6cc4453b8b4eb58252c2d93c7d725b0ff /sys-cluster/saru/files
parentSmall fixes. (Manifest recommit) (diff)
downloadgentoo-2-fc12e0f27b1d2e5f004d9fce16d311c32142bc9b.tar.gz
gentoo-2-fc12e0f27b1d2e5f004d9fce16d311c32142bc9b.tar.bz2
gentoo-2-fc12e0f27b1d2e5f004d9fce16d311c32142bc9b.zip
Initial import. Closes #51335.
Diffstat (limited to 'sys-cluster/saru/files')
-rw-r--r--sys-cluster/saru/files/digest-saru-0.0.11
-rw-r--r--sys-cluster/saru/files/saru.conf1
-rw-r--r--sys-cluster/saru/files/saru.init37
3 files changed, 39 insertions, 0 deletions
diff --git a/sys-cluster/saru/files/digest-saru-0.0.1 b/sys-cluster/saru/files/digest-saru-0.0.1
new file mode 100644
index 000000000000..fc8a4b931d88
--- /dev/null
+++ b/sys-cluster/saru/files/digest-saru-0.0.1
@@ -0,0 +1 @@
+MD5 afd22b16f0716f07eafacad294d89c14 saru-0.0.1.tar.gz 242850
diff --git a/sys-cluster/saru/files/saru.conf b/sys-cluster/saru/files/saru.conf
new file mode 100644
index 000000000000..237fa3528d6a
--- /dev/null
+++ b/sys-cluster/saru/files/saru.conf
@@ -0,0 +1 @@
+SARU_ARGS=
diff --git a/sys-cluster/saru/files/saru.init b/sys-cluster/saru/files/saru.init
new file mode 100644
index 000000000000..96d778607674
--- /dev/null
+++ b/sys-cluster/saru/files/saru.init
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+#
+# init.d script for saru
+#
+# Created by Christian Zoffoli (XMerlin) <czoffoli@xmerlin.org>
+# Version 0.3
+
+PIDFILE=/var/run/saru.pid
+
+depend() {
+ use net
+ after heartbeat
+ after ip_vs_user_sync_simple
+}
+
+start() {
+
+ if ! lsmod | grep "ipt_saru" &> /dev/null ; then
+ # module ipt_saru not loaded
+ ebegin "Inserting ipt_saru kernel module"
+ modprobe ipt_saru &> /dev/null
+ eend $?
+ fi
+
+ ebegin 'Starting saru'
+
+ start-stop-daemon --quiet --start --startas /usr/sbin/saru --pidfile ${PIDFILE} -- ${SARU_ARGS}
+ eend $?
+}
+
+stop() {
+ ebegin 'Stopping saru'
+ # start-stop-daemon doesn't work as expected with saru ...killproc works better
+ #start-stop-daemon -o --quiet --stop --pidfile ${PIDFILE}
+ killproc /usr/sbin/saru && rm -f ${PIDFILE}
+ eend $?
+}