Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread Mistery X
Definition of the problem:
Installed applications daemons which have their startup scripts in
/usr/local/etc/rc.d/ are 
not starting during system boot as they should.

Description of the problem:
I had very good working server at FBSD 5.2.1 with several
applications (such as apache2, 
mysql, pureftpd, postfix, saslauth) and I have upgraded it one day,
due to security advisories
of FBSD developers, and application advisories due to portaudit
advisories.
Buildworld and whole process of upgrading system from cvsup goes
well, portupgrade of applications
also. And after that I discovered, that upgraded applications does
not start during system boot.
I chcecked my srcipts permissions (fine), same scripts (fine too -
if I run any script from 
commandline after the system start, it boots the proper daemon
nicely) and config files of
applications (fine too).
After that I started to read forums, and google, then find out  that
daemons now needs declarations
in /etc/rc.conf so I added them. Still nothing. I finished with that
I added the scripts at the end
of the only starting script which is apache2 script, but this is
*NOT* proper solution, even
if daemons are working.
Can *anybody* give me *any* hint/tip or tell me what I did wrong? Im
fightng with that for almost 
two weeks right now, and that affects all 3 of my machines.

System details:

rc.conf:
apache2_enable=YES
oidentd_enable=YES
mysqld_enable=YES
pureftpd_enable=YES
local_startup=/usr/local/etc/rc.d 

installed versions:
apache-2.0.50
mysql-client-4.0.20
mysql-server-4.0.20
pure-ftpd-1.0.19 
postfix-2.1.3,1
cyrus-sasl-saslauthd-2.1.18_2

sample startup script from .../rc.d/:
pure-ftpd.sh:
#!/bin/sh

# PROVIDE: pureftpd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
#
# pureftpd_enable=YES
#

. /etc/rc.subr

name=pureftpd
rcvar=`set_rcvar`

command=/usr/local/sbin/pure-config.pl
pureftpd_config=${pureftpd_config:-/usr/local/etc/pure-ftpd.conf}
required_files=${pureftpd_config}
pidfile=/var/run/pure-ftpd.pid
procname=pure-ftpd

pureftpd_enable=YES
command_args=${pureftpd_config}

load_rc_config $name
run_rc_command $1 

system:
FreeBSD 5.2.1-RELEASE-p8

Please, give me any help, if you know what is going on here.
Thanks a lot, mumija.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread root of all evil
Definition of the problem:
Installed applications daemons which have their startup scripts in
/usr/local/etc/rc.d/ are
not starting during system boot as they should.

Description of the problem:
I had very good working server at FBSD 5.2.1 with several applications (such
as apache2,
mysql, pureftpd, postfix, saslauth) and I have upgraded it one day, due to
security advisories
of FBSD developers, and application advisories due to portaudit advisories.
Buildworld and whole process of upgrading system from cvsup goes well,
portupgrade of applications
also. And after that I discovered, that upgraded applications does not start
during system boot.
I chcecked my srcipts permissions (fine), same scripts (fine too - if I run
any script from
commandline after the system start, it boots the proper daemon nicely) and
config files of
applications (fine too).
After that I started to read forums, and google, then find out  that daemons
now needs declarations
in /etc/rc.conf so I added them. Still nothing. I finished with that I added
the scripts at the end
of the only starting script which is apache2 script, but this is *NOT*
proper solution, even
if daemons are working.
Can *anybody* give me *any* hint/tip or tell me what I did wrong? Im fightng
with that for almost
two weeks right now, and that affects all 3 of my machines.

System details:

rc.conf:
apache2_enable=YES
oidentd_enable=YES
mysqld_enable=YES
pureftpd_enable=YES
local_startup=/usr/local/etc/rc.d

installed versions:
apache-2.0.50
mysql-client-4.0.20
mysql-server-4.0.20
pure-ftpd-1.0.19
postfix-2.1.3,1
cyrus-sasl-saslauthd-2.1.18_2

sample startup script from .../rc.d/:
pure-ftpd.sh:
#!/bin/sh

# PROVIDE: pureftpd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
#
# pureftpd_enable=YES
#

. /etc/rc.subr

name=pureftpd
rcvar=`set_rcvar`

command=/usr/local/sbin/pure-config.pl
pureftpd_config=${pureftpd_config:-/usr/local/etc/pure-ftpd.conf}
required_files=${pureftpd_config}
pidfile=/var/run/pure-ftpd.pid
procname=pure-ftpd

pureftpd_enable=YES
command_args=${pureftpd_config}

load_rc_config $name
run_rc_command $1

system:
FreeBSD 5.2.1-RELEASE-p8

Please, give me any help, if you know what is going on here.
Thanks a lot, r.


Message sent using UebiMiau 2.7.2

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread /root/of/all/evil
On Wed, Jul 21, 2004 at 05:12:27PM -0600, Warren Block wrote:
 On Wed, 21 Jul 2004, /root/of/all/evil wrote:
 
 The only daemon (called application somwhere in my mail) that starts 
 normally during
 system boot is apache2. Rest of them does not boot normally, but if I add 
 them (I mean
 'them' == the full path to their starting scripts in /usr/local/etc/rc.d/) 
 to the end of
 apache`s script, then they are starting..
 
 Are they all set to executable (chmod +x)?
 
 -Warren Block * Rapid City, South Dakota USA

Yes, they all are executable - if I add them to the end of the only script
that is starting normally (wich i s apache2 in this case) they execute normally and
the deamons are starting. But leaving them in /usr/local/etc/rc.d/ just do nothing.
:(

Any ideas?
r.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread Warren Block
On Thu, 22 Jul 2004, /root/of/all/evil wrote:
On Wed, Jul 21, 2004 at 05:12:27PM -0600, Warren Block wrote:
On Wed, 21 Jul 2004, /root/of/all/evil wrote:
The only daemon (called application somwhere in my mail) that starts
normally during
system boot is apache2. Rest of them does not boot normally, but if I add
them (I mean
'them' == the full path to their starting scripts in /usr/local/etc/rc.d/)
to the end of
apache`s script, then they are starting..
Are they all set to executable (chmod +x)?
Yes, they all are executable - if I add them to the end of the only script
that is starting normally (wich i s apache2 in this case) they execute normally and
the deamons are starting. But leaving them in /usr/local/etc/rc.d/ just do nothing.
I'm not sure we are talking about the same thing.  Is the x 
executable bit set when you do an ls -l in /usr/local/etc/rc.d?

# ls -l /usr/local/etc/rc.d
-r-xr-xr-x  1 root  wheel635 Jun 15 05:58 apache.sh
   ^  ^  ^
Are these bits set for all of the scripts in the directory?
-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread /root/of/all/evil
 I'm not sure we are talking about the same thing.  Is the x 
 executable bit set when you do an ls -l in /usr/local/etc/rc.d?
 
 # ls -l /usr/local/etc/rc.d
 -r-xr-xr-x  1 root  wheel635 Jun 15 05:58 apache.sh
^  ^  ^
 
 Are these bits set for all of the scripts in the directory?
 
 -Warren Block * Rapid City, South Dakota USA

As I said - yes, they are:

(%:/usr/local/etc/rc.d)- ls -lCzwartek 06:24:23
total 18
-rwxr-xr-x  1 root  wheel50 23 Maj 14:42 000.compat4x.sh
-rwxr-xr-x  1 root  wheel   181 24 Cze 23:50 000.mysql-client.sh
-rwxr-xr-x  1 root  wheel   248 13 Lip 19:11 000.pkgtools.sh
-rwxr-xr-x  1 root  wheel  1809 21 Lip 20:30 apache2.sh
-rwxr-xr-x  1 root  wheel   407 31 Maj 20:29 apache2.sh.orig
-rwxr-xr-x  1 root  wheel   227  9 Lip 14:27 helix.sh
-rwxr-xr-x  1 root  wheel   549 24 Cze 23:41 mysql-server.sh
-rwxr-xr-x  1 root  wheel   550 24 Cze 13:48 oidentd.sh
-rwxr-xr-x  1 root  wheel   558 21 Lip 20:23 pure-ftpd.sh
([EMAIL PROTECTED])(110/ttyp0)(06:24P:07/22/04)-
(%:/usr/local/etc/rc.d)-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]