summaryrefslogtreecommitdiffstats
path: root/japanese/wxg/files/wxg.sh
blob: 9cd961b7931deebc4f8f5f2e4e3469fbc7f32832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
wxgserver=!!PREFIX!!/sbin/wxgserver

case "$1" in
start)
	if [ -f $wxgserver ]; then
		rm -f /var/run/canna/Canna.pid
		mkdir -p /var/run/canna
		chown bin:bin /var/run/canna
		echo -n ' WXG'
		$wxgserver &
	fi
	;;
stop)
	!!PREFIX!!/sbin/cannakill && echo -n ' WXG'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac

exit 0
OpenPOWER on IntegriCloud