aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-07-05 23:57:49 +0800
committerknu <knu@FreeBSD.org>2000-07-05 23:57:49 +0800
commit784f11d1ad95fb4bb27b4a8853f98b3c6ae1aa75 (patch)
tree78e48ad2d6486c172c61fcb7b300b68f62bb74a4 /japanese
parent768878abb135546f6f300eb55a6c9e3a924c1b8f (diff)
downloadfreebsd-ports-gnome-784f11d1ad95fb4bb27b4a8853f98b3c6ae1aa75.tar.gz
freebsd-ports-gnome-784f11d1ad95fb4bb27b4a8853f98b3c6ae1aa75.tar.zst
freebsd-ports-gnome-784f11d1ad95fb4bb27b4a8853f98b3c6ae1aa75.zip
- Fix a typo: esecannai -> esecanna
- Refer to the pid file and use the value to kill the running process instead of using killall(1) so as not to fail. - Drop `force' support and just recommend to run ${PREFIX}/sbin/esecannaserver directly, in a certain situation.
Diffstat (limited to 'japanese')
-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