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
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
...
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
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
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
- 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
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
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
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
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
.
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
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
--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`
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
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
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
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'
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
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
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
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.
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
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
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
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
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
-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
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
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
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
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
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
32 matches
Mail list logo