You are not logged in.

#1 2009-02-17 20:21:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

newbie arch /etc/rc.d/script question

From reading the Rc.conf wiki page, all I need to do to have a script run at boot time is add it to my /etc/rc.d/ and call it in the DAEMONS section of the /etc/rc.conf right?

Here is my script (/etc/rc.d/athcool-start):

#!/bin/bash
/usr/sbin/athcool on

I added "athcool-start" to my Daemons section of the /etc/rc.conf but the script doesn't run at boot up.  Am I missing something?

Last edited by graysky (2009-02-17 20:22:10)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-02-17 20:28:48

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: newbie arch /etc/rc.d/script question

take a look at the other scripts in the /etc/rc.d/ directory to see how such a script should look like. You should be able to modify one for your needs

Offline

#3 2009-02-17 20:35:58

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: newbie arch /etc/rc.d/script question

to build on pressh's comment, most rc.d scripts have a start, stop, restart case statement form.  i'm not sure if that's required to get it working correctly (i've got a custom dropboxd rc.d script that's giving me headaches at boot time so i won't offer any more "expertise" wink).

now to my main point: it seems by the nature of your script, that that line would be better off in rc.local

Offline

#4 2009-02-17 20:47:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: newbie arch /etc/rc.d/script question

@brisbin - Agreed.

Last edited by graysky (2009-02-17 20:57:33)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB