blob: fee5998a4fef7cdab041ecbe2be6b0a0a3384b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/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 $?
}
|