| ECS Home Automation and Security Archives |
| Subject: From: Date: | RE: [ecs] Still looking for where to place the cmd Mark Gilmore Sat, 01 Nov 2003 05:17:00 -0800 |
Sorry for the confusion, but this auto-startup effort is for a Knoppix private-label vsn of ECS. I am just trying to get it to work under RH9 1st, so I won't waste weeks blindly burning Knoppix test CDs (and I need to know how to do this basic task anyway). So I still need to know where to place my command, *or* preferably why my links in /Autostart have no effect. Thanks, At 09:37 PM 10/31/2003 -0800, you wrote: >I agree completely that making ECS a daemon that runs in the background >without a user interface is the proper way to solve all the problems >Mark has struggled with, from automatically starting to the bind problem >(assuming that I identified that correctly). With ECS as a daemon, there >is no need for autostarting. Or even for logging in in the first place. > >But do be aware that X will (usually) NOT be up when the scripts in >/etc/rc.d/rc5.d are executed (/etc/rc5.d is a redhat-specific link, and >actually not a very good idea to have). > >Everything in /etc/rc.d/rc5.d is executed completely during bootup. X is >actually NOT launched during the boot phase. Rather, *once the boot >phase is completed*, Linux sets up seven terminals. You can switch back >and forth between them with Alt+F1 through Alt+F7. Then, Linux launches >the applications specified in /etc/inittab. In six of the terminals, it >runs /sbin/mingetty. In the seventh terminal, it runs /etc/X11/prefdm >-nodaemon. This is the X login screen, and it will also start the X >server at the same time. So X is definitely NOT running when >/etc/rc.d/rc5.d is executed. The only time it would already be running >is if you start or stop certain individual services. > >As an aside, the script actually should be in /etc/rc.d/init.d. >/etc/rc.d/rc5.d should only contain a link. > >On Fri, 2003-10-31 at 17:44, Rob Hicks wrote: > > Mark, > > > > Why not just create a shell script and place it in /etc/rc5.d/ with an > > execution number high enough that it will execute after everything else has > > run. rc5.d runs only when the system is set up for run level 5, or X. > Thus X > > should be up. I assume that you want X running in order to launch a > browser? > > > > My preference would be to have ECS run as a daemon that can be attached to > > with a browser, either on the local machine or on remote machines. Then > when > > a user logs in, you give simply give them a desktop or panel link to launch > > the browser and go to the ECS sign on page. > > > > Rob > > > > -----Original Message----- > > From: Mark Gilmore [mailto:mark@markgilmore.net] > > Sent: Friday, October 31, 2003 4:51 PM > > To: ecs@netbloc.com > > Subject: [ecs] Still looking for where to place the cmd > > > > OK - Let me try asking it another way (focusing on RH9 for now): > > When I log in, I want RH9/Linux to start a terminal (i.e. "konsole" or > > "gnome") > > session and run a command within that session (the cmd being "konzole > > -e="ecs.bin"). > > In *what* file would I place this command ? > > Thanks, > > > > Mark Gilmore > > http://OmnipotenceSoftware.com > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003 Mark Gilmore http://OmnipotenceSoftware.com
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003