home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ogicse!emory!dscatl!wcieng!kim
- From: kim@wcieng.UUCP (Kim Moran)
- Newsgroups: comp.unix.shell
- Subject: Re: Daemons started on Reboot Question
- Keywords: Daemon tty
- Message-ID: <16153@wcieng.UUCP>
- Date: 26 Aug 92 17:34:11 GMT
- Article-I.D.: wcieng.16153
- References: <1992Aug24.142632.19324@walter.bellcore.com>
- Reply-To: kim@wcieng.UUCP (Kim Moran)
- Organization: Wegener Communications Inc, Atlanta GA
- Lines: 27
-
-
- In article <1992Aug24.142632.19324@walter.bellcore.com> dan@bae.bellcore.com writes:
- ....... lines deleted .....
- >/etc/rc.zebra:
- >
- >#!/bin/ksh
- >#
- ># START ZEBRA daemons
- >#
- >if [ -f /usr/local/pkg/zebra/bin/zebrad ]
- >then
- > echo "Starting ZEBRA Daemons" >/dev/console 2>&1
- > /bin/su zebradm -c '/usr/local/pkg/zebra/bin/zebrad' >/dev/console 2>&1
- >fi
- >
-
- We had a similiar problem with our target system. We use XENIX, but this may
- also fix your problem. Try using the minus (-) as the first argument to su,
- that is:
- /bin/su - zebradm -c '/usr/local/pkg/zebra/bin/zebrad'
-
- In XENIX, if the first argument to su is -, the environment is changed to
- what would be expected if the user actually logged in as the user specified.
-
- Hope this helps.
-
- Kim
-