From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325006680.tru64-unix-managers.marc@archive.invalid> From: "Edward C. Bailey" Date: Fri, 17 Nov 1995 20:13:51 +0000 To: tru64-unix-managers Subject: Summary: Need help running a script at boot... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325006680 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