Skripty softwaru tretich stran startuji 2x

Daniel Dvořák daniel-dvorak at atlas.cz
Tue Jun 5 15:44:07 CEST 2007


Ahoj vsichni,

prosim poradte mi co se deje, co jsem eventualne nastavil spatne.

Po instalaci trocha software, rovnez po portupgrade a rebootu serveru
jsem zpozoroval ze skripty z /usr/local/etc/rc.d/ (mam ln -s /etc2 do
/usr/local/etc) se pokouseji startovat hned dvakrat.

Jmenovite vmware_guest denyhosts uptimed. U pdns to vim taky jen ho mam
ted vypnute.

Takle vypada ta cast dmesg -a:

------------------------------------------------------
Starting auditd.
Loading vmmemctl kernel module.
VMware memory control driver initialized
Loading vmxnet kernel module.
Starting vmware_guestd.
Starting denyhosts.
Loading vmmemctl kernel module.
Loading vmxnet kernel module.
Starting vmware_guestd.
Starting denyhosts.
DenyHosts could not obtain lock (pid: 721)
[Errno 17] File exists: '/var/run/denyhosts.pid'
-strih-
Starting cron.
Local package initialization:
 uptimed
 uptimed
uptimed is already running.
------------------------------------------------------

Zde je dmesg -a s rc info a debug pro uplnost, ale vymazal jsem to co
bylo kolem:

------------------------------------------------------
/etc/rc: DEBUG: checkyesno: vmware_guest_vmmemctl_enable is set to NO.
/etc/rc: DEBUG: checkyesno: vmware_guest_vmxnet_enable is set to NO.
/etc/rc: DEBUG: checkyesno: vmware_guestd_enable is set to YES.
/etc/rc: DEBUG: pid file (/var/run/vmware_guestd.pid): not readable.
/etc/rc: DEBUG: run_rc_command: evaluating
/usr/local/sbin/vmware-checkvm > /dev/null().
Starting vmware_guestd.
/etc/rc: DEBUG: run_rc_command: _doit: /usr/local/sbin/vmware-guestd
--background /var/run/vmware_guestd.pid --halt-command '/sbin/shutdown
-p now' >/dev/null 2>&1
/etc/rc: DEBUG: checkyesno: pdns_enable is set to NO.
/etc/rc: DEBUG: checkyesno: denyhosts_enable is set to YES.
/etc/rc: DEBUG: pid file (/var/run/denyhosts.pid): not readable.
Starting denyhosts.
/etc/rc: DEBUG: run_rc_command: _doit: /usr/local/bin/denyhosts.py 
--config /usr/local/etc/denyhosts.conf --daemon
/etc/rc: DEBUG: checkyesno: xfs_enable is set to NO.
/etc/rc: DEBUG: checkyesno: vmware_guest_vmmemctl_enable is set to NO.
/etc/rc: DEBUG: checkyesno: vmware_guest_vmxnet_enable is set to NO.
/etc/rc: DEBUG: checkyesno: vmware_guestd_enable is set to YES.
/etc/rc: DEBUG: run_rc_command: evaluating
/usr/local/sbin/vmware-checkvm > /dev/null().
Starting vmware_guestd.
/etc/rc: DEBUG: run_rc_command: _doit: /usr/local/sbin/vmware-guestd
--background /var/run/vmware_guestd.pid --halt-command '/sbin/shutdown
-p now' >/dev/null 2>&1
/etc/rc: DEBUG: checkyesno: pdns_enable is set to NO.
/etc/rc: DEBUG: checkyesno: denyhosts_enable is set to YES.
Starting denyhosts.
/etc/rc: DEBUG: run_rc_command: _doit: /usr/local/bin/denyhosts.py 
--config /usr/local/etc/denyhosts.conf --daemon
DenyHosts could not obtain lock (pid: 857)
[Errno 17] File exists: '/var/run/denyhosts.pid'
-strih-
Local package initialization:
 uptimed
 uptimed
uptimed is already running.
------------------------------------------------------

Vim jiste ze pred temito zmenami instalace, upgrade a reboot to
nestartovalo dvakrat.

Zavadny jsou ty skripty softwaru tretich stran tedy ty co jsou umisteny
v /usr/local/etc/rc.d/.

Kdyz jsem se dival na vystup rcorder tak to spoustet ma jen jednou coz
je spravne.

------------------------------------------------------
# rcorder /etc2/rc.d/*
rcorder: file `/etc2/rc.d/xfs' is before unknown provision `LOGIN'
rcorder: requirement `ldconfig' in file `/etc2/rc.d/xfs' has no providers.
rcorder: requirement `cleartmp' in file `/etc2/rc.d/xfs' has no providers.
/etc2/rc.d/xfs
rcorder: requirement `DAEMON' in file `/etc2/rc.d/vmware-guestd' has no
providers.
/etc2/rc.d/vmware-guestd
/etc2/rc.d/uptimed.sh
rcorder: requirement `DAEMON' in file `/etc2/rc.d/pdns' has no providers.
/etc2/rc.d/pdns
rcorder: requirement `DAEMON' in file `/etc2/rc.d/denyhosts' has no
providers.
/etc2/rc.d/denyhosts
------------------------------------------------------

Tohle mam v rc.conf:
------------------------------------------------------
# cat /etc/rc.conf

# -- sysinstall generated deltas -- # Sun Nov  5 04:17:33 2006
# Created: Sun Nov  5 04:17:33 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
accounting_enable="YES"
auditd_enable="YES"
defaultrouter=""
font8x14="iso02-8x14"
font8x16="iso02-8x16"
font8x8="iso02-8x8"
hostname=""
ifconfig_em0=""
kern_securelevel_enable="NO"
keymap="moje"
keyrate="fast"
nfs_reserved_port_only="YES"
ntpdate_enable="YES"
ntpdate_flags="ntp.cgi.cz"
saver="blank"
scrnmap="NO"
sshd_enable="YES"
firewall_enable="YES"
firewall_type="client"
firewall_logging="YES"
postfix_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
dovecot_enbable="YES"
pdns_enable="NO"
apache22_enable="YES"
vmware_guest_vmmemctl_enable="YES"
vmware_guest_vmxnet_enable="YES"
vmware_guestd_kmod_enable="YES"
vmware_guestd_enable="YES"

# -- sysinstall generated deltas -- # Thu Nov 23 08:11:50 2006
moused_enable="YES"

# Console Resolution
#allscreens_flags="-c destructive -g 100x37 VESA_800x600"
dumpdev="/dev/mirror/gm0s1b"
syslogd_enable="YES"
syslogd_flags="-4c"
denyhosts_enable="YES"
mountlate_start_enable="YES"
icmp_drop_redirect="NO"         # Set to YES to ignore ICMP REDIRECT packets
icmp_log_redirect="YES"         # Set to YES to log ICMP REDIRECT packets
icmp_bmcastecho="YES"   # respond to broadcast ping packets
bsdstats_enable="YES"
fsck_y_enable="YES"
background_fsck="NO"
linux_enable="YES"
rc_info="NO"
rc_debug="NO"
------------------------------------------------------

Neni mi jasny proc se system snazi spoustet ty skripty za sebou.

S pozdravem

Dan




More information about the Users-l mailing list