startup / shutdown script (rc.d)




Hi,

I was wondering if there is a simple way to create 1 script that will be
called during startup and shutdown. Basically, I am looking for something
like this:

if startup
run command 1 with params
run command 2 with params
run command 3 with params

if shutdown
run command 4 with params
run command 5 with params
run command 6 with params

i have tried lookin up rc.d documentation, but it very vague and difficult
to understand...thanks
--
View this message in context: http://www.nabble.com/startup---shutdown-script-%28rc.d%29-tf3848895.html#a10902043
Sent from the freebsd-questions mailing list archive at Nabble.com.

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: ntpdate without RTC
    ... shutdown and when the hwclock command is given. ... You can also write scripts to write the time in a file during shutdown ... when this system starts the first time it shows the ... file on shutdown and read the file on startup? ...
    (comp.os.linux.misc)
  • Re: startup / shutdown script (rc.d)
    ... I was wondering if there is a simple way to create 1 script that will be ... called during startup and shutdown. ... run command 1 with params ...
    (freebsd-questions)
  • Re: startup / shutdown script (rc.d)
    ... be called during startup and shutdown. ... run command 1 with params ...
    (freebsd-questions)
  • Looking for a user shutdown or startup script
    ... Where can I find something...you know, that executes a script for shutdown ... or startup? ... What I want to do is append it with a simple rm command ...
    (alt.os.linux.suse)
  • Executing commands on startup and shutdown
    ... I have been trying to execute a command on startup, ... cannot execute the command on shutdown. ...
    (RedHat)