You are not logged in.
Where do I put commands that I want run at startup? Right now I just dumped them in /etc/rc.sysinit but I'm not sure that is the proper way to do things.
Offline
Just out of curiousity, which commands are you running?
Anyway, you'd want to put them in /etc/rc.local
Offline
hdparm -u1 -c3 -d1 -m16 /dev/hda
echo 1024 > /proc/sys/dev/rtc/max-user-freq
Offline
You have just to them in /etc/rc.local, with a & after them.
Mortuus in anima, curam gero cutis
Offline
For /proc/sys settings, I prefer to use /etc/sysctl.conf e.g. your rtc setting:
dev.rtc.max-user-freq=1024
Offline
You have just to them in /etc/rc.local, with a & after them.
Is that necessary for these commands? I thought it was only for apps you run with the window manager? Well not only for them, but mainly...
Offline
It is not necessary but it won't hurt, either. It backgrounds the process but these commands should exit fairly quickly anyways.
Offline
IIRC you can also run such commands earlier in the boot process using modprobe.conf.
Offline
Since my devices don't get DMA by default, startup is a LOT slower if it waits until rc.local before turning on DMA - that's after starting all the other daemons... I saved this as /etc/rc.d/hdparm and added "hdparm" as number one in the DAEMONS array in /etc/rc.conf - since hdparm is then run before most of the daemons, the daemons will start faster:
#!/bin/bash
# Turn on 32bit I/O, DMA and multiple sector I/O on harddrives
hdparm -qc1 -qd1 -qm16 /dev/hda /dev/hdb
# Turn on 32bit I/O and DMA on ATAPI-devices
hdparm -qc1 -qd1 /dev/hdc /dev/hdd
IIRC you can also run such commands earlier in the boot process using modprobe.conf.
Can you give me a pointer how? This would be even better than my way, as DMA will hopefully speed up loading the uevents...
Offline
Since my devices don't get DMA by default, startup is a LOT slower if it waits until rc.local before turning on DMA - that's after starting all the other daemons... I saved this as /etc/rc.d/hdparm and added "hdparm" as number one in the DAEMONS array in /etc/rc.conf - since hdparm is then run before most of the daemons, the daemons will start faster:
#!/bin/bash # Turn on 32bit I/O, DMA and multiple sector I/O on harddrives hdparm -qc1 -qd1 -qm16 /dev/hda /dev/hdb # Turn on 32bit I/O and DMA on ATAPI-devices hdparm -qc1 -qd1 /dev/hdc /dev/hdd
Gullible Jones wrote:IIRC you can also run such commands earlier in the boot process using modprobe.conf.
Can you give me a pointer how? This would be even better than my way, as DMA will hopefully speed up loading the uevents...
try putting them in /etc/rc.sysinit and make it the first line
Offline