On 02/13/2009 10:16 AM, Mike McClain wrote:
On Sun, 08 Feb 2009, Ron Johnson wrote:
On 02/08/2009 01:45 PM, Abdelkader Belahcene wrote:
Hi,
I used /etc/rc.local to run at the boot a program, but it didn't, here
is what I wrote
<snip>
Everything in my rc.local works like a champ.
I'm curious how this works for you but not for Mr. Belahcene and not for me.
Because I don't have any GUI app activations in my rc.local. Only
daemons and other CLI apps. Here's what mine looks like:
***** BEGINNING OF rc.local
#!/bin/sh -e
echo 2100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
cpufreq-set -g ondemand
python /usr/local/bin/cpu_temp_daemon.py
#if [ -f /data/03/swap/swap003.swap ]; then
# swapon -v /data/03/swap/swap003.swap
#fi
#if [ -f /data/03/swap/swap004.swap ]; then
# swapon -v /data/03/swap/swap004.swap
#fi
chown me:me /data/private
exit 0
****** END OF rc.local
I've a Debian 4.0 (Etch mostly) system with sysv-rc installed
and /etc/rc.local is not called by default. I added a call in
/etc/init.d/bootmisc.sh to get it executed because the suggestion in
the Debian FAQ sect. 10.6 which says to put a script in /etc/init.d/
then use update-rc.d to set the links seemed over complex for my needs.
Do you have the file-rc package installed instead of sysv-rc?
--
Ron Johnson, Jr.
Jefferson LA USA
Supporting World Peace Through Nuclear Pacification
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org