You are not logged in.

#1 2009-06-25 13:38:29

semle
Member
Registered: 2009-06-25
Posts: 2

Run script AFTER boot

I want to run a non-ending script after boot. And I still want to be able to login. So adding the script to rc.local won't fix my problem since the boot process won't finish so that I can login.
Adding the script to "dillons" cron doesn't seem to work either since you cant specify @boot in it. And setting "* * * * *" will result in 1 minutes wait before the script runs.

Does anyone have any good ideas to solve my problem?

Offline

#2 2009-06-25 13:46:39

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: Run script AFTER boot

Background it in rc.local?

/path/to/my-script &

Offline

#3 2009-06-25 14:03:03

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: Run script AFTER boot

just create a runable script and start it as a daemon!?

Offline

#4 2009-06-25 14:11:47

semle
Member
Registered: 2009-06-25
Posts: 2

Re: Run script AFTER boot

Thank you it worked perfect! Had to redirect output and input for the script to tty but it worked. smile

Offline

#5 2009-06-25 14:16:00

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

Re: Run script AFTER boot

as mentioned you can background it in rc.local, or you can create a custom /etc/rc.d file which will make it a daemon just like any other.  there are templates or just copy some existing simple one.  i created one for dropbox which is available on the wiki if you'd like to use it as a guide.

/edit.  whoops; took too long to craft that response.  ignore me.

Last edited by brisbin33 (2009-06-25 14:16:28)

Offline

#6 2009-06-25 23:03:04

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Run script AFTER boot

You could also install vixie-cron which supports @reboot syntax.

Offline

Board footer

Powered by FluxBB