Re: The booting process stops at the line mounting root ufs /dev/md0
Xrhstaras wrote: > The booting process stops at the line mounting root ufs /dev/md0 > > (Starting with the option for no acpi ) > > > We really need more info to be able to help you... Is this booting off from the CD? What version of FreeBSD? Any specific reason you are booting without ACPI? What is the make/model of your motherboard? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: The Booting Process
gffds fsdff wrote: Is there a way, when booting, to have an application launch? Ex: exec /usr/servers/bots/zDSBot3/zDSBot3 & Where would I add this line, if possible? If not, would it be possible to be made in the next version? Thanks, - A Guy Just get your bot into the FreeBSD core system, and then init(8) will handle it. Heh On a more serious note, and as a alternative, cron(8) does have a "@reboot" target Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: The Booting Process
Yes there is just such a place Your launch script should look like this. File name some-name.sh #!/bin/sh exec /usr/servers/bots/zDSBot3/zDSBot3 & put it in /usr/local/etc/rc.d/ The permission on this script file must be read, write, exec for owner root. Chmod 700 /usr/local/etc/rc.d/some-name.sh During the boot process after rc.conf gets executed then any file in /usr/local/etc/rc.d/ that ends with .sh gets executed. That's where dhcp, apache and all other ports get launched from at boot time. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of gffds fsdff Sent: Wednesday, December 24, 2003 6:25 PM To: [EMAIL PROTECTED] Subject: The Booting Process Is there a way, when booting, to have an application launch? Ex: exec /usr/servers/bots/zDSBot3/zDSBot3 & Where would I add this line, if possible? If not, would it be possible to be made in the next version? Thanks, - A Guy _ Expand your wine savvy - and get some great new recipes - at MSN Wine. http://wine.msn.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: The Booting Process
On Thursday 25 December 2003 00:25, gffds fsdff wrote: > Is there a way, when booting, to have an application launch? > Ex: > exec /usr/servers/bots/zDSBot3/zDSBot3 & Have a look at /usr/local/etc/rc.d All scripts that are executable and end in ".sh" in that directory get executed at boot-time. You could create your own scripts in that directory that starts your application. On boot the scripts are executed with the first agrument being "start". On shutdown the scripts are executed with "stop" as first argument. By checking the argument in your script you can determine if you should start the application or not. (Don't start it at shutdown :) A simple rc.d-script could look something like this : --- cut here --- #!/bin/sh case "$1" in start) /some/dir/some-app && echo -n ' some-app' ;; stop) ;; *) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac exit 0 --- cut here --- The "echo -n" line is the output you see when you boot your system after : "Local package initialization :" This only works on applications that daemonize (dissapear into the background when you start them). If your program doesn't daemonize, you should start it with an "&" sign behind it... grtz, Daan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: The Booting Process
> > Is there a way, when booting, to have an application launch? > > Ex: > exec /usr/servers/bots/zDSBot3/zDSBot3 & > > Where would I add this line, if possible? If not, would it be possible to be > made in the next version? See man rc(8). jerry > > Thanks, > > - A Guy > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"