tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: Need help running a script at boot...
@ 1995-11-17 20:13 Edward C. Bailey
  0 siblings, 0 replies; only message in thread
From: Edward C. Bailey @ 1995-11-17 20:13 UTC (permalink / raw)
  To: tru64-unix-managers

First of all, thanks to the 17 people that responded:
(apologies if some addresses are truncated, and if I missed anyone)

  mclaughl@nssdc.gsfc.nasa. 
    mcmahon@cad3.uccb.ns.ca 
     watkins@chop.swmed.edu 
  szgyula@skysrv.Pha.Jhu.ED 
     bosse@python.konbib.nl 
        mike@lib.utexas.edu 
          hallberg@e.kth.se 
          trulsonj@mscd.edu 
     mjl@CSlab.tuwien.ac.at 
  mooney@dogbert.cc.ndsu.No 
          dwagon@aaii.oz.au 
  Jonathan.Buchanan@ska.com 
       kluge@ave.ac.agit.de 
        ittrmr@staffs.ac.uk 
         philip@uvo.dec.com 
       jwright@phy.ucsf.edu 
  ucien HERCAUD"@paribas.co 

The responses tended to be focused in four areas:

    1. Fixing various aspects of the environment (strategically placed
       sleeps, changing sequence of script execution, using a different
       shell, etc.).

    2. Preventing the run_daemon script from getting a HUP signal when its'
       parent (S99msqld) exits.  The methods of doing this usually
       consisted of some variant of the following command:

        nohup /usr/local/Minerva/run_daemon msqld &

       The "nohup" prevents HUP signals from having any affect on
       run_daemon.  Other methods of doing this using the trap statement,
       writing a wrapper program that calls setsid(), and then execv()s
       run_daemon, using "at" to start run_daemon, etc.

    3. Responses that, while not addressing my problem, contained good
       information.  These included the fact that any script executed at a
       "system" level really should use explicit paths for all programs it
       invokes, to prevent trojan horses from making your life more
       exciting than it needs to be.  Also mentioned were opinions that
       msqld really doesn't need the run_daemon wrapper script, and that
       msqld is not a very good daemon (along with some code to make it
       work better).

    4. Well meaning responses that made me wonder if the sender actually
       read and understood my message. :-)

To make a long story short, I tried approach #2 and used "nohup".  Worked
like a champ from the get-go.  Many thanks everyone!

                                Ed
--
Ed Bailey, Information Systems and Networks
(contracted to: National Institute of Environmental Health Sciences)
2327 Englert Drive.
Suite 200
Durham, NC 27713
                              
 Internet: bailey@niehs.nih.gov
   BITnet: BAILEY@NIEHS.BITNET 
    Voice: (919)361-9422, extension 239
      FAX: (919)544-6642

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-11-17 20:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-17 20:13 Summary: Need help running a script at boot Edward C. Bailey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox