1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/kiwiirc/kiwiirc.initd
2016-08-25 08:11:29 +00:00

36 lines
480 B
Text

#!/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 $?
}