aboutsummaryrefslogtreecommitdiffstats
path: root/community/kiwiirc/kiwiirc.initd
blob: 0d58b4fb49f4f9757ed0f7ca847f52b9c0435e8d (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
33
34
35
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 $?
}