home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aux / 3984 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  2.1 KB

  1. Path: sparky!uunet!vtserf!csugrad!cstruble
  2. From: cstruble@csugrad.cs.vt.edu (Craig 'Copier Man' Struble)
  3. Newsgroups: comp.unix.aux
  4. Subject: Re: Arguments to daemons in /etc/servers
  5. Message-ID: <BxB6zr.7Hu@csugrad.cs.vt.edu>
  6. Date: 6 Nov 92 19:19:02 GMT
  7. References: <REUVEN.92Nov4100728@vongole.mit.edu> <1992Nov5.220209.9687@grebyn.com>
  8. Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
  9. Lines: 36
  10.  
  11. mfraioli@grebyn.com (Marc Fraioli) writes:
  12.  
  13. >In article <REUVEN.92Nov4100728@vongole.mit.edu> reuven@the-tech.mit.edu writes:
  14. >>Does anyone know how to set arguments to daemons started in
  15. >>/etc/servers? I'm running a WAIS server on my A/UX 3.0 box, and the
  16. >>server program can take an argument that specifies a logfile. The man
  17. >>page says that fields in /etc/servers are separated by blank space,
  18. >>but doesn't say whether you can use double quotes to run commands with
  19. >>arguments. Can this be done? Or should I run the thing from /etc/rc?
  20. >>
  21. >>Reuven
  22.  
  23. >I'm pretty sure you can't do this from /etc/servers.  I think you need
  24. >to make an entry in /etc/inittab for it.  I was having some trouble a
  25. >while back with automounter on DECstations trying to mount A/UX
  26. >partitions, and needed to add an option to the mountd.  Putting it in
  27. >/etc/servers did not work, but /etc/inittab did.  I'm giving you this
  28. >from memory, so I may be slightly off, but I think this is basically
  29. >right.
  30. >-- 
  31. >Marc Fraioli
  32. >mfraioli@grebyn.com                (So I'm a minimalist...)
  33.  
  34. There are a couple of ways to do this. The easiest, but possibly insecure
  35. way is just to create an executable script and run the server with
  36. the necessary arguments from within the script. I've done this with 
  37. pidentd-2.0 successfully.
  38.  
  39. Another way, which I haven't tried, but should be possible, is to write
  40. a small C program which just execs the server with the arguments.
  41.     See ya later,
  42. -- 
  43.        IDEAL - Interface Design Environment and Analysis Lattice
  44. Craig Struble                            | cstruble@gnu.ai.mit.edu
  45. Undergraduate Researcher                 | cstruble@csugrad.cs.vt.edu
  46. Va. Tech HCI Project                     | cstruble@toaster.async.vt.edu(SLIP)
  47.