---
#./rc.news
#ps -ae |grep inn
845 ?? S 0:37.29 /usr/news/bin/innd -p4 -r -i0
847 ttyp0 S 18:50.09 sh /usr/news/bin/innwatch
---
start innd at startup time with rc.news in sbin/rc3.d/
innwatch don't start
Thank you for the answer, Any help is appreciated.
the solution
Not knowing what your rc.news looks like, make sure it is started as
follows. I always make this change for DU machines.
# Gee, looks like lisp, doesn't it?
${DOINNWATCH} && {
echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 1 min' >
/dev/null
}
finaly i have
in /sbin/rc3.d/S98news
#! /bin/sh
##
su news -c /usr/news/bin/rc.news >/dev/console
#
in /usr/news/bin/rc.news
...
...
# Gee, looks like lisp, doesn't it?
#################
### ${DOINNWATCH} && {
### ( sleep 60 ; ${INNWATCH} ) &
### }
#################
${DOINNWATCH} && {
echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 1 min' >/dev/null
}
#################
...
...
ls -la /usr/news/bin/rc.news
-r-xr-xr-x 1 news news 2214 Jul 9 15:15 /usr/news/bin/rc.news
ls -la /usr/news/bin/inndstart
-rwsrwsrwx 1 root system 65536 Feb 13 10:09 /usr/news/bin/inndstart
ls -la /usr/news/bin/innwatch
-rwsrwsrwx 1 root system 7474 Jun 25 16:39 /usr/news/bin/innwatch
ps -ae |grep inn
545 ?? I 0:00.26 /usr/news/bin/innd -p4 -i0
606 ?? I N 0:01.44 sh /usr/news/bin/innwatch
now at startup time innwatch run
Vincenzo Magnano vincenzo_at_casaccia.enea.it
Received on Fri Jul 10 1998 - 10:26:48 NZST
This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT