aboutsummaryrefslogtreecommitdiffstats
path: root/community/kiwiirc/kiwiirc.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/kiwiirc/kiwiirc.initd')
-rw-r--r--community/kiwiirc/kiwiirc.initd36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/kiwiirc/kiwiirc.initd b/community/kiwiirc/kiwiirc.initd
new file mode 100644
index 0000000000..0d58b4fb49
--- /dev/null
+++ b/community/kiwiirc/kiwiirc.initd
@@ -0,0 +1,36 @@
+#!/sbin/openrc-run
+#
+# Open-RC init.d file for Kiwi IRC
+# Copyright (c) 2016 - Francesco Colista (fcolista@alpinelinux.org)
+
+description="Kiwi IRC Daemon"
+command="/usr/bin/kiwi"
+pidfile="/var/run/kiwiirc/kiwiirc.pid"
+
+depend() {
+ use net
+ after firewall
+}
+
+start() {
+ if ! [ -f /var/lib/kiwiirc/index.html ]; then
+ $command build
+ fi
+ $command start
+ eend $?
+}
+
+stop() {
+ $command stop
+ eend $?
+}
+
+status() {
+ $command status
+ eend $?
+}
+
+build() {
+ $command build
+ eend $?
+}