NetBSD-Users archive

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

Re: /etc/rd.d/ script execution

On Tuesday 10 June 2008 15:36:15 Jeremy C. Reed wrote:
> 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.)

I didn't really understand the above, however I've just realised a very simple 
solution to my problem:

cd /opt/pkg/bin
mv mpd mpd.bin

cat > mpd
exec schedctl -P63 -C SCHED_RR /opt/pkg/bin/mpd.bin

chmod +x mpd

Home | Main Index | Thread Index | Old Index