Re: svcscan in /etc/ttys

Michael Sierchio <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
George Georgalis wrote:
> Running svscanboot on FreeBSD, what's the recommended /etc/ttys line?

svscan is an alternative to having things spawned from /etc/ttys --
my /usr/local/etc/10-svscan.sh looks like this -- I don't use
readproctitle

#!/bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

exec 0</dev/null 1>/dev/null 2>/dev/null

case $1 in

stop)
     svc -dx /service/* /service/*/log
     killall svscan supervise
         ;;
start)
     svc -dx /service/* /service/*/log
     killall svscan supervise
     exec csh -cf '\
         exec env - PATH="$PATH" svscan /service \
         >& /dev/null < /dev/null & \
     '
         ;;

*)
         ;;

esac
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.