summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/zeppelin-bin/files/zeppelin.init.d')
-rw-r--r--www-apps/zeppelin-bin/files/zeppelin.init.d19
1 files changed, 19 insertions, 0 deletions
diff --git a/www-apps/zeppelin-bin/files/zeppelin.init.d b/www-apps/zeppelin-bin/files/zeppelin.init.d
new file mode 100644
index 00000000000..03ddd6beabc
--- /dev/null
+++ b/www-apps/zeppelin-bin/files/zeppelin.init.d
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Web-based interactive data analytics notebook launcher"
+command="/opt/zeppelin/bin/zeppelin-daemon.sh"
+logfile="/var/log/zeppelin/zeppelin-gentoo.log"
+
+start() {
+ ebegin "Starting Apache Zeppelin ..."
+ bash $command start >> $logfile
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Apache Zeppelin ..."
+ bash $command stop >> $logfile
+ eend $?
+}