summaryrefslogtreecommitdiff
path: root/japanese/esecanna/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-10-25 16:11:00 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-10-25 16:11:00 +0000
commit2012911aea4b1a0aac890fca7ead7a14ff5f399c (patch)
tree5c98ebd1cdc383332f6fc4e179e879f395da7c64 /japanese/esecanna/files
parent- s/USE_TCP_WRAPPERS/WITH_TCP_WRAPPERS/g (diff)
Create a pid file and nohup.out in /var/run/esecanna/.
Notes
Notes: svn path=/head/; revision=92127
Diffstat (limited to 'japanese/esecanna/files')
-rw-r--r--japanese/esecanna/files/esecanna.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/japanese/esecanna/files/esecanna.sh b/japanese/esecanna/files/esecanna.sh
index 0d91e5025e59..3190f9c6cf61 100644
--- a/japanese/esecanna/files/esecanna.sh
+++ b/japanese/esecanna/files/esecanna.sh
@@ -3,6 +3,7 @@
# $FreeBSD$
esecannaserver="!!PREFIX!!/sbin/esecannaserver"
+piddir="/var/run/esecanna"
case "$1" in
start)
@@ -18,11 +19,12 @@ start)
if [ -x $esecannaserver ]; then
rm -f /tmp/.iroha_unix/IROHA
echo -n ' esecanna: '
+ cd $piddir
nohup $esecannaserver
fi
;;
stop)
- pidfile="/var/run/esecanna.pid"
+ pidfile=$piddir/esecanna.pid
if [ -f $pidfile ]; then
kill `cat $pidfile` && echo -n ' esecanna'
rm $pidfile