aboutsummaryrefslogtreecommitdiff
path: root/japanese/esecanna
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-07-05 15:57:49 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-07-05 15:57:49 +0000
commitf62ffe4bc187dd09bfb65569e027e7a04b22ac63 (patch)
tree97f0f643a7ae12746af1f4416a66fc085fd37bac /japanese/esecanna
parent0ae505a66b9994b28577755374c4b85bc61c45fa (diff)
downloadports-f62ffe4bc187dd09bfb65569e027e7a04b22ac63.tar.gz
ports-f62ffe4bc187dd09bfb65569e027e7a04b22ac63.zip
Notes
Diffstat (limited to 'japanese/esecanna')
-rw-r--r--japanese/esecanna/files/esecanna.sh33
1 files changed, 16 insertions, 17 deletions
diff --git a/japanese/esecanna/files/esecanna.sh b/japanese/esecanna/files/esecanna.sh
index 2cbbbef82a07..5898a2e9e121 100644
--- a/japanese/esecanna/files/esecanna.sh
+++ b/japanese/esecanna/files/esecanna.sh
@@ -1,38 +1,37 @@
#!/bin/sh
+#
+# $FreeBSD$
esecannaserver="!!PREFIX!!/sbin/esecannaserver"
case "$1" in
-restart)
- if [ -x $esecannaserver ]; then
- rm -f /tmp/.iroha_unix/IROHA
- echo -n ' esecannai: '
- $esecannaserver
- fi
- ;;
start)
if [ -f !!PREFIX!!/vje30/.version ] \
- && grep -qw 'FREE TRIAL VERSION' !!PREFIX!!/vje30/.version \
- && [ X"$1" != X"restart" ]; then
- echo ""
- echo "esecanna:"
- echo " Using VJE-Delta 3.0 trial, it is unable to connect to vjed on startup."
- echo " Please execute \`$0 restart' manually"
- echo " after once you run vje."
+ && grep -qw 'FREE TRIAL VERSION' !!PREFIX!!/vje30/.version; then
+ echo ''
+ echo 'esecanna:'
+ echo ' Using VJE-Delta 3.0 trial, it is unable to connect to vjed on startup.'
+ echo ' Please execute $esecannaserver manually after once you run vje.'
exit 1
fi
if [ -x $esecannaserver ]; then
rm -f /tmp/.iroha_unix/IROHA
- echo -n ' esecannai: '
+ echo -n ' esecanna: '
$esecannaserver
fi
;;
stop)
- killall $esecannaserver && echo -n ' esecannai'
+ pidfile="/var/run/esecanna.pid"
+ if [ -f $pidfile ]; then
+ kill `cat $pidfile` && echo -n ' esecanna'
+ rm $pidfile
+ else
+ echo ' esecanna: not running'
+ fi
;;
*)
- echo "Usage: `basename $0` {restart|start|stop}" >&2
+ echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac