home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3649 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.2 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ogicse!emory!dscatl!wcieng!kim
  2. From: kim@wcieng.UUCP (Kim Moran)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Daemons started on Reboot Question
  5. Keywords: Daemon tty
  6. Message-ID: <16153@wcieng.UUCP>
  7. Date: 26 Aug 92 17:34:11 GMT
  8. Article-I.D.: wcieng.16153
  9. References: <1992Aug24.142632.19324@walter.bellcore.com>
  10. Reply-To: kim@wcieng.UUCP (Kim Moran)
  11. Organization: Wegener Communications Inc, Atlanta GA
  12. Lines: 27
  13.  
  14.  
  15. In article <1992Aug24.142632.19324@walter.bellcore.com> dan@bae.bellcore.com writes:
  16. ....... lines deleted .....
  17. >/etc/rc.zebra:
  18. >
  19. >#!/bin/ksh
  20. >#
  21. ># START ZEBRA daemons
  22. >#
  23. >if [ -f /usr/local/pkg/zebra/bin/zebrad ]
  24. >then
  25. >        echo "Starting ZEBRA Daemons"                    >/dev/console 2>&1
  26. >        /bin/su zebradm -c '/usr/local/pkg/zebra/bin/zebrad'  >/dev/console 2>&1
  27. >fi
  28. >
  29.  
  30. We had a similiar problem with our target system.  We use XENIX, but this may
  31. also fix your problem.  Try using the minus (-) as the first argument to su, 
  32. that is:
  33.    /bin/su - zebradm -c '/usr/local/pkg/zebra/bin/zebrad'
  34.  
  35. In XENIX, if the first argument to su is -, the environment is changed to
  36. what would be expected if the user actually logged in as the user specified.
  37.  
  38. Hope this helps.
  39.  
  40. Kim
  41.