mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
36 lines
480 B
Text
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 $?
|
|
}
|