* how to detect reboot or shutdown in a script
@ 2002-11-05 22:08 Dyer, Steve J.
0 siblings, 0 replies; only message in thread
From: Dyer, Steve J. @ 2002-11-05 22:08 UTC (permalink / raw)
We are using Tru64 v5.1A and have this issue:
We have a script that may be run either by hand or through the normal
startup process (linked into rc3.d). The script uses both the "stop" and
"start" arguments. Within that script, is there way to detect whether it was
run directly by the root account as opposed to being run as a result of a
reboot or a shutdown ? I am able to tell the difference on the "start" path
by using the LOGINNAME variable. I'm not sure how to do this on the "stop"
path.
Thanks,
Steve Dyer
ALCOA, Inc.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-05 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-05 22:08 how to detect reboot or shutdown in a script Dyer, Steve J.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox