From owner-freebsd-newbies@FreeBSD.ORG Sat Jul 24 08:58:30 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9153A16A4CE for ; Sat, 24 Jul 2004 08:58:30 +0000 (GMT) Received: from zeik.wns.amu.edu.pl (zeik.wns.amu.edu.pl [150.254.89.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id E963143D1D for ; Sat, 24 Jul 2004 08:58:27 +0000 (GMT) (envelope-from r@zeik.wns.amu.edu.pl) Received: from zeik.wns.amu.edu.pl (localhost [127.0.0.1]) by zeik.wns.amu.edu.pl (8.12.10/8.12.10) with ESMTP id i6O91p6a009074 for ; Sat, 24 Jul 2004 11:01:51 +0200 (CEST) (envelope-from r@zeik.wns.amu.edu.pl) Received: (from r@localhost) by zeik.wns.amu.edu.pl (8.12.10/8.12.10/Submit) id i6O91pAY009073 for freebsd-newbies@freebsd.org; Sat, 24 Jul 2004 11:01:51 +0200 (CEST) (envelope-from r) Date: Sat, 24 Jul 2004 11:01:51 +0200 From: /root/of/all/evil To: freebsd-newbies@freebsd.org Message-ID: <20040724090151.GA8990@zeik.wns.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Daemons are not starting during boot from /usr/local/etc/rc.d/ X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2004 08:58:30 -0000 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 (only one script is starting - apache2). 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. Also, I dont see anything uncommon content in any system log. 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" file permissions: -rwxr-xr-x 1 root wheel 50 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 system: FreeBSD 5.2.1-RELEASE-p8 Please, give me any help, if you know what is going on here. Thanks a lot, r.