summaryrefslogtreecommitdiff
path: root/app-i18n/freewnn/files/freewnn.initd
blob: fda9184a50789d9cbad58c91ae2651957f70e63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run

depend() {
	use net
}

start() {
	ebegin "Starting up ${SERVICE}"
	/usr/bin/Wnn4/jserver &>/dev/null
	if [ $? -eq 15 ]; then
		true;
	else
		false;
	fi
	eend 0
}

stop() {
	ebegin "Stopping ${SERVICE}"
	/usr/bin/Wnn4/wnnkill &> /dev/null
	eend $? "Failed to stop ${SERVICE}"
}