NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /etc/rd.d/ script execution



> name="mpd"
...
> load_rc_config $name

If it exists, it will source in /etc/rc.conf.d/mpd

So normally you can prerun some command or make some environment variable 
settings specific for a rc.d script by putting in /etc/rc.conf.d/$name.

(Check the rc.d script to see what it uses for the load_rc_config.)

> run_rc_command "$1"


Home | Main Index | Thread Index | Old Index