DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th March 2015
Valus Valus is offline
Port Guard
 
Join Date: Feb 2015
Location: EU
Posts: 22
Default php_fpm and clamd fails to start after reboot

Hi all,

I have installed recently openbsd server and noticed that after reboot php_fpm and clamd fails to start.
Code:
bash-4.3$ dmesg | head -10
OpenBSD 5.7-current (GENERIC) #837: Wed Mar 18 18:50:05 MDT 2015
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 520081408 (495MB)
avail mem = 500477952 (477MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0x1ffffec0 (10 entries)
bios0: vendor Seabios version "0.5.1" date 01/01/2007
bios0: Red Hat KVM
After server reboot I have to start the php_fpm and clamd manualy.
Code:
bash-4.3# /etc/rc.d/clamd start
clamd(ok)
bash-4.3# /etc/rc.d/php_fpm start
php_fpm(ok)
Starting of clamd takes 42 second. Do I have to put deamons in /etc/rc.conf.local in differend order?
Code:
bash-4.3# cat /etc/rc.conf.local
ntpd_flags=""
pkg_scripts=php_fpm
httpd_flags=""
smtpd_flags=""
pkg_scripts=clamd
pkg_scripts=dovecot
pf=YES                  # Packet filter / NAT
spamd_flags="-v"
spampd_flags="--port=10035 --relayhost=127.0.0.1:10036 --tagall -aw"
I start also clamsmtpd in /etc/rc.local. Can this have an effect on starting the other daemons?
Code:
bash-4.3# cat /etc/rc.local
/usr/local/sbin/clamsmtpd -f /etc/clamsmtpd-in.conf
/usr/local/sbin/clamsmtpd -f /etc/clamsmtpd-out.conf
Thanks for help.

Valus
Reply With Quote
  #2   (View Single Post)  
Old 26th March 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

You need a single instance of the pkg_scripts variable containing your third party packages in the order they are to be started.

Example:
Code:
pkg_scripts=php_fpm clamd dovecot
Reply With Quote
  #3   (View Single Post)  
Old 26th March 2015
Valus Valus is offline
Port Guard
 
Join Date: Feb 2015
Location: EU
Posts: 22
Default

Thank you jggimi. I changed /etc/rc.conf.local and now it is ok after reboot.
Code:
bash-4.3# cat /etc/rc.conf.local
ntpd_flags=""
pkg_scripts=php_fpm clamd dovecot
httpd_flags=""
smtpd_flags=""
pf=YES                  # Packet filter / NAT
spamd_flags="-v"
spampd_flags="--port=10035 --relayhost=127.0.0.1:10036 --tagall -aw"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSolaris Fails to Start mgh21 Solaris 6 16th November 2012 01:13 PM
preventing /tmp from getting cleaned on reboot daemonfowl OpenBSD General 17 9th May 2012 01:03 PM
hello, how BSD reboot but keep memory misssir FreeBSD General 8 11th October 2011 02:43 PM
Portsnap causes system to reboot Weaseal FreeBSD Ports and Packages 22 11th October 2008 07:14 AM
Can't connect to clamd through /var/run/clamav/clamd ccc FreeBSD Ports and Packages 2 12th July 2008 08:27 PM


All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick