You are not logged in.
Pages: 1
I'm trying to run nvclock at boot and my rc.local looks like this:
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
/usr/bin/nvclock -f -F 30 &
It's not working and I can't figure out why - can you help?!
Offline
as far as i know in rc.conf you can only add deamons to boot at start up and modules to load.
Normal apps you want to start at boot up you start when you log in and have separate config file depending on DE/WM you use.
Offline
It should be perfectly allright what you are doing - try to debug it somewhat, ie
echo ":: Starting 'nvclock' ..."
if [ /usr/bin/nvclock -f -F 30 & ]; then echo ":: success!"; else echo ":: failure"; fi
Btw - I presume you have tried to run it from the command line and it works then?
Offline
@singral
Not exactly.
You can run anything from rc.local (I use it to set some LEDs and run cronwhip once at startup, neither of which are daemons or modules). Generally though you will only run system apps though.
You're right though that normal/user apps are usually started with the DE's/WM's autostart configuration.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Does that nvclock command need to run as root? If not you can use the following in your /etc/rc.local:
su username -c /usr/bin/nvclock -f -F 30 &
Last edited by graysky (2009-09-22 19:51:19)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Another problem might be that it needs to be run while X is running.
Offline
Another problem might be that it needs to be run while X is running.
To follow up on that, if nvclock is a graphical application (X-based), then you should start it in your DE's/WM's autostart file, not rc.local.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
@singral
rc.conf != rc.local
if it is as graphical as it sounds, and you want it running regardless of DE/WM, you could probably put it in your ~/.xinitrc
One nation, under the corporatocracy, indivisible, with liberty for them.
Really, I can understand the Supreme Court's rulings. Afterall, corporations are people just like us, with love and feelings, hopes and dreams, and a limited lifespan to do it all in... oh wait, nevermind. I was thinking of same-sex marriage.
Offline
Thanks for all the suggestions! Annoyingly, none of them have worked!
The command reduces the fan speed on my nvidia graphics card - I want to do it to reduce noise.
I would prefer that it ran for all users in all sessions, hence I'd like ti to run out of rc.local.
Driving me nuts!
Offline
You could try adding it to /etc/profile or to /usr/bin/*-session entries. Not the cleanest way, but if it works...
Offline
Pages: 1