blob: a8fc53c3f75a9a3baccb2711db86e41386d5e70d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/print/clibpdf/files/Attic/esecanna.sh,v 1.1 2000-08-22 14:11:10 knu Exp $
esecannaserver="!!PREFIX!!/sbin/esecannaserver"
case "$1" in
start)
if [ -f !!PREFIX!!/vje30/.version ] \
&& 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 ' esecanna: '
$esecannaserver
fi
;;
stop)
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` {start|stop}" >&2
exit 64
;;
esac
exit 0
|