My solution of rc.local.
If there is a beter way to go - please help. I've read /etc/init.d/README and manpages referenced And by the way - i've disabled boot.quota, and placed quotaon -a in my rc.local, and now this server starts much faster ;) Quite a qute idea with using kernel mem ;). Oah, we can use UUIDz from /proc ;). 8<--------------------------------- #! /bin/sh # /etc/init.d/rc_local ### BEGIN INIT INFO # Provides: local_startup # Required-Start: $syslog $remote_fs $ALL # Should-Start: # Required-Stop: $syslog $remote_fs # Should-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: local startup script # Description: Good old rc.local. ### END INIT INFO . /etc/rc.status rc_reset case "$1" in start) muf=`cat /proc/sys/dev/rtc/max-user-freq` if [ $muf != "64" ]; then exit fi echo -n "Starting RC_LOCAL" hdparm -c3 /dev/hda quotaon -a #arpwatch -i eth0 -f arp.dat-inet #arpwatch -i eth1 -f arp.dat-local echo 128 > /proc/sys/dev/rtc/max-user-freq # echo -n "[DEBUG] done rc_local" rc_status -v ;; stop) echo -n "Shutting down RC_LOCAL " rc_status -v ;; restart) $0 stop $0 start rc_status ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac rc_exit
participants (1)
-
suse-list