pkgsrc/inputmethod/skkserv/files/skkserv.sh
jmmv 7d7d16056f Convert to bsd.pkg.install.mk to handle the rc.d script. MESSAGE is removed
as the default install template provides the right standard information (or
can be extended in a common way if needed ;).  Bump PKGREVISION to 2.
2003-07-29 22:08:28 +00:00

26 lines
400 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: skkserv.sh,v 1.2 2003/07/29 22:08:29 jmmv Exp $
#
# PROVIDE: skkserv
# REQUIRE: DAEMON
name="skkserv"
command="@PREFIX@/libexec/skkserv"
pidfile=""
cmd=${1:-start}
case ${cmd} in
start)
if [ -x ${command} ]; then
echo "Starting ${name}."
${command} > /dev/null 2>&1
fi
;;
*)
if [ -x ${command} ]; then
${command} ${cmd} > /dev/null 2>&1
fi
;;
esac