Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-02 Thread Jonathan McKeown
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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-02 Thread Da Rock
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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-01 Thread Da Rock
... 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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-01 Thread Boris Samorodov
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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-01 Thread Da Rock
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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-01 Thread Erik Trulsson
- 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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-01 Thread Valentin Bud
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

Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-01 Thread Da Rock
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

Re: rc scripts

2008-06-30 Thread David Allen
On Fri, Jun 27, 2008 at 3:01 PM, Derek Ragona [EMAIL PROTECTED] wrote: At 04:11 PM 6/27/2008, David Allen wrote: I need to an '-s' flag to the execution of openntpd's rc script: The problems I'm having are multiple. First, the program doesn't offer any logging, and running it with the do

Re: rc scripts

2008-06-30 Thread David Allen
On 6/27/08, Paul Schmehl [EMAIL PROTECTED] wrote: --On Friday, June 27, 2008 14:11:55 -0700 David Allen [EMAIL PROTECTED] wrote: I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail .

rc scripts

2008-06-27 Thread David Allen
I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail . /etc/rc.subr name=openntpd rcvar=`set_rcvar` command=/usr/local/sbin/ntpd required_files=/usr/local/etc/ntpd.conf

Re: rc scripts

2008-06-27 Thread Derek Ragona
At 04:11 PM 6/27/2008, David Allen wrote: I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail . /etc/rc.subr name=openntpd rcvar=`set_rcvar` command=/usr/local/sbin/ntpd

Re: rc scripts

2008-06-27 Thread Paul Schmehl
--On Friday, June 27, 2008 14:11:55 -0700 David Allen [EMAIL PROTECTED] wrote: I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail . /etc/rc.subr name=openntpd rcvar=`set_rcvar`

Re: Question about rc-scripts

2007-10-09 Thread Mel
themselves by forking a child and detach the parent, in which case the pid file created by the daemon(8) command is useless, because it records the detached parent, not the running child. On the other hand, pid files are a convenience, not a requirement for rc scripts. If no pidfile variable

Re: Question about rc-scripts

2007-10-09 Thread sdafreebsduk
Hi Philip, Most binaries i.e. httpd, memcached, mysqld, etc... provide a config file or cli option to provide the path to a pid file. Like you say - I can't find anything in rc.subr that would create a pid. So, I looked in /etc/rc.d/ntpd (for example), and I still can't find in there where

Re: Question about rc-scripts

2007-10-09 Thread Chuck Swiger
On Oct 9, 2007, at 5:16 PM, [EMAIL PROTECTED] wrote: Most binaries i.e. httpd, memcached, mysqld, etc... provide a config file or cli option to provide the path to a pid file. Like you say - I can't find anything in rc.subr that would create a pid. So, I looked in /etc/rc.d/ntpd (for

Question about rc-scripts

2007-10-08 Thread Stephen Allen
Under normal circumstance, should the /etc/rc.subr functions handle the creation of the pid at service start? The basic vendor-provided script (which I've had to adapt somewhat to suit this installation) runs echo $! ${dbgw_pidfile} as the last line of the script. When you do a 'status'

Re: Question about rc-scripts

2007-10-08 Thread Derek Ragona
At 05:45 PM 10/8/2007, Stephen Allen wrote: Under normal circumstance, should the /etc/rc.subr functions handle the creation of the pid at service start? The basic vendor-provided script (which I've had to adapt somewhat to suit this installation) runs echo $! ${dbgw_pidfile} as the last line

Re: Question about rc-scripts

2007-10-08 Thread Stephen Allen
Hi Derek, Not all scripts create a pid file is the simple answer. I didn't see how the isc-dhcpd script or dovecot created a pid, so I assumed it was something that rc.subr took care of. Your script should create the pid file on start, remove it on stop, and simply cat that file on a

Re: Question about rc-scripts

2007-10-08 Thread Philip M. Gollucci
Again, I thought the rc.subr functions took care of all that for you (unless you wanted something special from those commands). In general, they do see /etc/rc.subr: check_pidfile(), wait_for_pids(), Most binaries i.e. httpd, memcached, mysqld, etc... provide a config file or cli

Re: Question about rc-scripts

2007-10-08 Thread Philip M. Gollucci
Philip M. Gollucci wrote: Your particular problem is that run_rc_command actually exists so that the script exists with the correct return code generally that of what the application in question returns from trying to start or stop. s/exists/exits/g in the above.

login.conf not honored for rc scripts?

2007-02-21 Thread Josh Carroll
I've been having a problem with mysql and apache starting up properly, and finally I think I found the issue. I have a gallery class defined in /etc/login.conf with the limits I want, but the rc scripts are using the default class values instead. I put: limits /tmp/limits In the /usr/local

[SOLVED] Re: login.conf not honored for rc scripts?

2007-02-21 Thread Josh Carroll
Ok, I should have dug into the rc scripts to begin with. For archive sake, and so others who may stumble upon this can find a solution, I found that for mysql, I needed the following in rc.conf: mysql_limits=YES And also, since the mysql rc script is hard-coded to use the login class mysql, I

Re: using rc scripts

2006-05-13 Thread Lowell Gilbert
Atom Powers [EMAIL PROTECTED] writes: I wrote an rc script for cfengine, but it's not recording the pid. Am I doing something obviously wrong, or does rc rely on the app to provide the pid? Yes. The application has to provide the pid. In the base system, many do this by default, but most

using rc scripts

2006-05-12 Thread Atom Powers
I wrote an rc script for cfengine, but it's not recording the pid. Am I doing something obviously wrong, or does rc rely on the app to provide the pid? -- #!/bin/sh # # PROVIDE: cfexecd # REQUIRE: LOGIN # BEFORE: securelevel # KEYWORD: FreeBSD shutdown . /etc/rc.subr name=cfexecd

Re: RC scripts HOWTO

2006-03-14 Thread Andrew
http://www.netbsd.org/guide/en/chap-rc.html#chap-rc-reading may be of some help. I believe the current system came from, or was at least largely inspired by the NetBSD rc.d scripts. -Andrew On Sun, 2006-03-12 at 20:31 -0600, Eric Schuele wrote: Bob Goodman wrote: -BEGIN PGP SIGNED

RC scripts HOWTO

2006-03-12 Thread Bob Goodman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guys, could you please direct me to some info, the detailed the better, on how RC and RCng scripts work in FreeBSD. Can't seem to find in handbook or google. Thanks in advance Bob -BEGIN PGP SIGNATURE- Note: This signature can be verified at

Re: RC scripts HOWTO

2006-03-12 Thread Eric Schuele
Bob Goodman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guys, could you please direct me to some info, the detailed the better, on how RC and RCng scripts work in FreeBSD. Can't seem to find in handbook or google. man pages for rc and rcorder not provide what you are looking for

Re: RC scripts HOWTO

2006-03-12 Thread Andrew Pantyukhin
On 3/13/06, Bob Goodman [EMAIL PROTECTED] wrote: Guys, could you please direct me to some info, the detailed the better, on how RC and RCng scripts work in FreeBSD. Can't seem to find in handbook or google. I'm afraid the only way to get comprehensive knowledge at this time is to carefully

Re: Can't control PostgreSQL with RC scripts

2005-04-12 Thread Ed Stover
On Fri, 2005-04-08 at 10:59 +0300, Volodymyr Kostyrko wrote: Pat Maddox wrote: I installed PostgreSQL 8.0.1 from ports, and now I'd like to control it with the RC scripts. I wasn't able to run initdb with the scripts, I had to do that manually with the regular initdb command. Now I've

Re: Can't control PostgreSQL with RC scripts

2005-04-08 Thread Volodymyr Kostyrko
Pat Maddox wrote: I installed PostgreSQL 8.0.1 from ports, and now I'd like to control it with the RC scripts. I wasn't able to run initdb with the scripts, I had to do that manually with the regular initdb command. Now I've got the db dir as /usr/local/pgsql/data, which is what it looks like

Can't control PostgreSQL with RC scripts

2005-04-07 Thread Pat Maddox
I installed PostgreSQL 8.0.1 from ports, and now I'd like to control it with the RC scripts. I wasn't able to run initdb with the scripts, I had to do that manually with the regular initdb command. Now I've got the db dir as /usr/local/pgsql/data, which is what it looks like pgsql expects