Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Thu, 2008-10-02 at 09:18 +0200, Jonathan McKeown wrote: > On Thursday 02 October 2008 01:59:18 Da Rock wrote: > > On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > > > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > > > > > So are you saying I can't start a script manually without enabling it > > > > in rc.conf? I was not under that impression... I thought it could be > > > > started manually for testing before setting it for automatic startup- > > > > based on my reading in the handbook and man pages. > > > > > > Yes, you can. Use forcestart/forcestop instead of start/stop when > > > running the rc script if you do not have it enabled in rc.conf. This is > > > documented in rc(8) (and is very easily overlooked if you don't know what > > > you are looking for.) > > > > Well thank you both for that piece of information, I had overlooked > > that. I did end up using it that way, but I was still unaware that it > > was mandatory. > > The problem with forcestart is that it ignores any errors that may occur. The > better option for a manual start is onestart, which simply bypasses the test > for the option being enabled but still fails on any other error (missing > dependencies, startup problems etc). > > Jonathan Well that might be more useful (and best practice)... Cheers for the heads up guys ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Thursday 02 October 2008 01:59:18 Da Rock wrote: > On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > > > So are you saying I can't start a script manually without enabling it > > > in rc.conf? I was not under that impression... I thought it could be > > > started manually for testing before setting it for automatic startup- > > > based on my reading in the handbook and man pages. > > > > Yes, you can. Use forcestart/forcestop instead of start/stop when > > running the rc script if you do not have it enabled in rc.conf. This is > > documented in rc(8) (and is very easily overlooked if you don't know what > > you are looking for.) > > Well thank you both for that piece of information, I had overlooked > that. I did end up using it that way, but I was still unaware that it > was mandatory. The problem with forcestart is that it ignores any errors that may occur. The better option for a manual start is onestart, which simply bypasses the test for the option being enabled but still fails on any other error (missing dependencies, startup problems etc). Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > > Da Rock <[EMAIL PROTECTED]> writes: > > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > > > >> Has anyone else had trouble with starting mysql server with the rc > > > >> script? > > > >> > > > >> I've only just installed from ports (as a dependency, mind) and > > > >> technically it should just start when you run the rc script - it sets > > > >> up > > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > > >> setup stuff automatically, and so the script fails. I've done the setup > > > >> manually before so its no real biggy, but I imagine others would be > > > >> more > > > >> than a little frustrated. > > > >> > > > >> Anyone else have this trouble? I just realised I had to do this last > > > >> time too... > > > >> > > > >> For reference: I'm starting the script manually for testing at this > > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > > > these will work when run manually- even on different machines and bsd > > > > versions (all 6.x). > > > > > > > > Is it just me? > > > > > > Sorry for may be a dumb question: did you define an > > > _enable="YES" at /etc/rc.conf[.local]? For more info > > > you may look at the script you are trying to start. > > > > So are you saying I can't start a script manually without enabling it in > > rc.conf? I was not under that impression... I thought it could be > > started manually for testing before setting it for automatic startup- > > based on my reading in the handbook and man pages. > > Yes, you can. Use forcestart/forcestop instead of start/stop when running > the rc script if you do not have it enabled in rc.conf. This is documented > in rc(8) (and is very easily overlooked if you don't know what you are > looking for.) Well thank you both for that piece of information, I had overlooked that. I did end up using it that way, but I was still unaware that it was mandatory. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Wed, Oct 1, 2008 at 12:39 PM, Da Rock <[EMAIL PROTECTED]>wrote: > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > Da Rock <[EMAIL PROTECTED]> writes: > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > >> Has anyone else had trouble with starting mysql server with the rc > > >> script? > > >> > > >> I've only just installed from ports (as a dependency, mind) and > > >> technically it should just start when you run the rc script - it sets > up > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > >> setup stuff automatically, and so the script fails. I've done the > setup > > >> manually before so its no real biggy, but I imagine others would be > more > > >> than a little frustrated. > > >> > > >> Anyone else have this trouble? I just realised I had to do this last > > >> time too... > > >> > > >> For reference: I'm starting the script manually for testing at this > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None > of > > > these will work when run manually- even on different machines and bsd > > > versions (all 6.x). > > > > > > Is it just me? > > > > Sorry for may be a dumb question: did you define an > > _enable="YES" at /etc/rc.conf[.local]? For more info > > you may look at the script you are trying to start. > > So are you saying I can't start a script manually without enabling it in > rc.conf? I was not under that impression... I thought it could be > started manually for testing before setting it for automatic startup- > based on my reading in the handbook and man pages. > Yes you can without put it in /etc/rc.conf. Use the force word. # /usr/local/etc/rc.d/mysql-server forcestart all the best, v > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > Da Rock <[EMAIL PROTECTED]> writes: > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > >> Has anyone else had trouble with starting mysql server with the rc > > >> script? > > >> > > >> I've only just installed from ports (as a dependency, mind) and > > >> technically it should just start when you run the rc script - it sets up > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > >> setup stuff automatically, and so the script fails. I've done the setup > > >> manually before so its no real biggy, but I imagine others would be more > > >> than a little frustrated. > > >> > > >> Anyone else have this trouble? I just realised I had to do this last > > >> time too... > > >> > > >> For reference: I'm starting the script manually for testing at this > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > > these will work when run manually- even on different machines and bsd > > > versions (all 6.x). > > > > > > Is it just me? > > > > Sorry for may be a dumb question: did you define an > > _enable="YES" at /etc/rc.conf[.local]? For more info > > you may look at the script you are trying to start. > > So are you saying I can't start a script manually without enabling it in > rc.conf? I was not under that impression... I thought it could be > started manually for testing before setting it for automatic startup- > based on my reading in the handbook and man pages. Yes, you can. Use forcestart/forcestop instead of start/stop when running the rc script if you do not have it enabled in rc.conf. This is documented in rc(8) (and is very easily overlooked if you don't know what you are looking for.) -- Erik Trulsson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > Da Rock <[EMAIL PROTECTED]> writes: > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > >> Has anyone else had trouble with starting mysql server with the rc > >> script? > >> > >> I've only just installed from ports (as a dependency, mind) and > >> technically it should just start when you run the rc script - it sets up > >> the db dirs and stuff so it can just run. But I can't get it to do the > >> setup stuff automatically, and so the script fails. I've done the setup > >> manually before so its no real biggy, but I imagine others would be more > >> than a little frustrated. > >> > >> Anyone else have this trouble? I just realised I had to do this last > >> time too... > >> > >> For reference: I'm starting the script manually for testing at this > >> point (if that makes a difference- which I believe it shouldn't). > > > > Manually running port installed rc scripts is not working manually. I'm > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > these will work when run manually- even on different machines and bsd > > versions (all 6.x). > > > > Is it just me? > > Sorry for may be a dumb question: did you define an > _enable="YES" at /etc/rc.conf[.local]? For more info > you may look at the script you are trying to start. So are you saying I can't start a script manually without enabling it in rc.conf? I was not under that impression... I thought it could be started manually for testing before setting it for automatic startup- based on my reading in the handbook and man pages. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
Da Rock <[EMAIL PROTECTED]> writes: > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: >> Has anyone else had trouble with starting mysql server with the rc >> script? >> >> I've only just installed from ports (as a dependency, mind) and >> technically it should just start when you run the rc script - it sets up >> the db dirs and stuff so it can just run. But I can't get it to do the >> setup stuff automatically, and so the script fails. I've done the setup >> manually before so its no real biggy, but I imagine others would be more >> than a little frustrated. >> >> Anyone else have this trouble? I just realised I had to do this last >> time too... >> >> For reference: I'm starting the script manually for testing at this >> point (if that makes a difference- which I believe it shouldn't). > > Manually running port installed rc scripts is not working manually. I'm > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > these will work when run manually- even on different machines and bsd > versions (all 6.x). > > Is it just me? Sorry for may be a dumb question: did you define an _enable="YES" at /etc/rc.conf[.local]? For more info you may look at the script you are trying to start. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql rc script failure - correction: most installed rc scripts not running manually
On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > Has anyone else had trouble with starting mysql server with the rc > script? > > I've only just installed from ports (as a dependency, mind) and > technically it should just start when you run the rc script - it sets up > the db dirs and stuff so it can just run. But I can't get it to do the > setup stuff automatically, and so the script fails. I've done the setup > manually before so its no real biggy, but I imagine others would be more > than a little frustrated. > > Anyone else have this trouble? I just realised I had to do this last > time too... > > For reference: I'm starting the script manually for testing at this > point (if that makes a difference- which I believe it shouldn't). Manually running port installed rc scripts is not working manually. I'm trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of these will work when run manually- even on different machines and bsd versions (all 6.x). Is it just me? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"