mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-29 21:39:24 +00:00
44 lines
907 B
Plaintext
44 lines
907 B
Plaintext
--- scripts/run_daemon.orig Mon Dec 16 03:44:22 1996
|
|
+++ scripts/run_daemon Sun Dec 22 15:54:18 1996
|
|
@@ -9,23 +9,25 @@
|
|
#
|
|
# bambi@Bond.edu.au
|
|
|
|
-INST_DIR=/usr/local/Minerva
|
|
-ADMIN="you@some.machine"
|
|
+umask 077
|
|
+
|
|
+INST_DIR=%%PREFIX%%
|
|
+ADMIN="root@%%HOSTNAME%%"
|
|
PROG=$1
|
|
|
|
-if test ! -d "${INST_DIR}/debug"
|
|
+if test ! -d "/tmp/debug"
|
|
then
|
|
- mkdir ${INST_DIR}/debug
|
|
+ mkdir /tmp/debug
|
|
fi
|
|
|
|
-if test ! -d "${INST_DIR}/debug/${PROG}"
|
|
+if test ! -d "/tmp/debug/${PROG}"
|
|
then
|
|
- mkdir ${INST_DIR}/debug/${PROG}
|
|
+ mkdir /tmp/debug/${PROG}
|
|
fi
|
|
|
|
while :
|
|
do
|
|
- cd ${INST_DIR}/debug/${PROG}
|
|
+ cd /tmp/debug/${PROG}
|
|
${INST_DIR}/bin/${PROG} > output 2>&1
|
|
echo "Program : ${PROG}
|
|
Time : `date`
|
|
@@ -34,6 +36,6 @@
|
|
|
|
" > mail.tmp
|
|
cat output >> mail.tmp
|
|
- /usr/ucb/mail -s "Minerva Daemon Crash Report" ${ADMIN} < mail.tmp
|
|
+ /usr/bin/mail -s "Minerva Daemon Crash Report" ${ADMIN} < mail.tmp
|
|
sleep 15
|
|
done
|