blob: 9c5fc8616a127be3cf8aa262c7093895f78b3a24 (
plain) (
blame)
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
|
#!/bin/sh
PROGRAM=@PREFIX@/sbin/jftpgw
CFGFILE=@PREFIX@/etc/jftpgw.conf
PIDFILE=/var/run/jftpgw.pid
case "$1" in
start)
if [ -x $PROGRAM ] && [ -r $CFGFILE ]
then
$PROGRAM
echo -n " jftpgw"
fi
;;
stop)
# work around PID file creation problem
killall jftpgw
# PID=`cat $PIDFILE 2>/dev/null`
# ps -p "$PID" | tail +2 | grep -sqw $PROGRAM && kill $PID
;;
*)
echo "usage: $0 start|stop"
;;
esac
|