12c098aa05
Prayer is yet another Webmail interface for IMAP servers on Unix systems. It exists because we weren't terribly happy about the characteristics of existing Webmail interfaces: in particular scalability problems with common open source Webmail packages and the lack of flexibility that commercial packages would give us. This doesn't mean that Prayer is trying to compete with existing Webmail packages. It just means that Prayer is better suited to our particular environment. WWW: http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/
39 lines
527 B
Bash
39 lines
527 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
if ! test -x %%PREFIX%%/prayer/sbin/prayer
|
|
then
|
|
exit 0
|
|
fi
|
|
#
|
|
case "$1" in
|
|
start)
|
|
%%PREFIX%%/prayer/sbin/prayer &&
|
|
echo -n ' prayer'
|
|
;;
|
|
stop)
|
|
for i in \
|
|
/var/spool/prayer/pid/prayer-session \
|
|
/var/spool/prayer/pid/prayer
|
|
do
|
|
if test -e ${i}
|
|
then
|
|
kill `head -1 ${i}`
|
|
rm -f "${i}"
|
|
fi
|
|
done
|
|
killall prayer-session
|
|
killall prayer
|
|
echo -n ' prayer'
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "Usage: ${0##*/}: { start | stop | restart }" >&2
|
|
exit 64
|
|
;;
|
|
esac
|