Newsgroup: it.comp.os.linux.iniziare
Titolo: vari problemi

Buondě a tutto l'ng
Ho qualche problema con la mia slack9.1
1- all'avvio quando viene lanciato rc.local che eseguwe il comando 
echo 1>/proc/sys/net/ipv4/icmp_echo_bogus_error_response
mi dice error no such file or directory (che perň ci sono) e il file 
contiene 1
2- Non riesce a caricare eth0. se faccio ifconfig up mi risponde con:
eth0: error fetching interface information: Device not found
ho letto che dovrei caricare il driver ma quale driver carico?
lspci dice questo:
ethernet controller: Accton technology corporation SMC2-1211TX (rev 10)
3- Quando chiudo la sessione con reboot o shutdown esegue qualche 
operazione poi si blocca con la scritta:
INIT: no more process left in this runlevel
Io nel file rc.6 ho aggiunto solo tre righe per far chiudere postgres (ho 
copiato quelle di httpd e le ho modificate) che si chiude correttamente
Come correggo?
Grazie e ciao
Paolo
--
pbonfanti2@*NOSPAM*
inwind.it
Togliere dall'indirizzo *NOSPAM*
Vuoi saperne di piů su python clicca 
http://www.pyj.it

 chiude correttamente Come correggo?
Non devi mettere lo shutdown in coda, ma prima dell'esecuzione dell'ultimo
`kill` che termina tutti i processi.
Beh, coi link l'init è più facile.
Perché slackware? Perché ti vuoi del male? :)))
Ciao!
gl :)

> Visto che sul ng si dice che i debianisti ce l'hanno con la slackware
Certo, hanno complessi di inferiorità...

 Certo, hanno complessi di inferiorità...
Beh allora dicci tu con la tua slackware qual è la soluzione del problema
di init!
gl :)

 
Se non ricordo male rc.local viene eseguito al termine di ogni altro
script di avvio, quindi il fs /proc dovrebbe già essere caricato, così
come i moduli per la scheda di rete, o no? 
Andrea

 Come correggo?
posta il tuo rc.6

 posta il tuo rc.6
eccolo:
# Set the path.
PATH=/sbin:/etc:/bin:/usr/bin
# If there are SystemV init scripts for this runlevel, run them.
if [ -x /etc/rc.d/rc.sysvinit ]; then
  . /etc/rc.d/rc.sysvinit
fi
# Set linefeed mode to avoid staircase effect.
stty onlcr
echo "Running shutdown script $0:"
# Find out how we were called.
case "$0" in
        *0)
                command="halt"
                ;;
        *6)
                command=reboot
                ;;
        *)
                echo "$0: call me as \"rc.0\" or \"rc.6\" please!"
                exit 1
                ;;
esac
# Save the system time to the hardware clock using hwclock --systohc.
# Detect SGI Visual Workstation, since hwclock will make those freeze up:
if fgrep -l Cobalt-APIC /proc/interrupts 1> /dev/null 2> /dev/null ; then
  echo "SGI Visual Workstation detected.  Not running hwclock."
elif [ -x /sbin/hwclock ]; then
  if grep "^UTC" /etc/hardwareclock 1> /dev/null 2> /dev/null ; then
    echo "Saving system time to the hardware clock (UTC)."
    /sbin/hwclock --utc --systohc
  else
    echo "Saving system time to the hardware clock (localtime)."
    /sbin/hwclock --localtime --systohc
  fi
fi
# Stop the Apache web server:
if [ -x /etc/rc.d/rc.httpd ]; then
  /etc/rc.d/rc.httpd stop
fi
# Stop the MySQL database:
if [ -r /var/run/mysql/mysql.pid ]; then
  . /etc/rc.d/rc.mysqld stop
fi
# Stop the Postgresql database:
if [ -x /etc/rc.d/rc.postgresql ]; then
  . /etc/rc.d/rc.postgresql stop
fi
# Stop the Samba server:
if [ -x /etc/rc.d/rc.samba ]; then
  . /etc/rc.d/rc.samba stop
fi
# Shut down the NFS server:
if [ -x /etc/rc.d/rc.nfsd ]; then
  /etc/rc.d/rc.nfsd stop
fi
# Unmount any NFS or SMB filesystems:
echo "Unmounting remote filesystems."
umount -a -r -t nfs,smbfs
# Try to kill dhcpcd so the DHCP leases can be returned:
killall -15 dhcpcd 1> /dev/null 2> /dev/null
# Shut down PCMCIA devices:
if [ -x /etc/rc.d/rc.pcmcia ] ; then
  . /etc/rc.d/rc.pcmcia stop
  # The cards might need a little extra time here to initialize.
  sleep 5
fi
# Turn off process accounting:
if [ -x /sbin/accton -a -r /var/log/pacct ]; then
  echo "Turning off process accounting."
  /sbin/accton
fi
# Kill all processes.
# INIT is supposed to handle this entirely now, but this didn't always
# work correctly without this second pass at killing off the processes.
# Since INIT already notified the user that processes were being killed,
# we'll avoid echoing this info this time around.
if [ "$1" != "fast" ]; then # shutdown did not already kill all processes
  killall5 -15
  sleep 5
  killall5 -9
fi
# Try to turn off quota:
if fgrep quota /etc/fstab 1> /dev/null 2> /dev/null ; then
  if [ -x /sbin/quotaoff ]; then
    echo "Turning off filesystem quotas."
    /sbin/quotaoff -a
  fi
fi
# Before unmounting file systems write a reboot or halt record to wtmp.
$command -w
# Carry a random seed between reboots.
# Save 512 bytes, which is the size of the entropy pool.
if [ ! -r /etc/random-seed ]; then
  touch /etc/random-seed
  chmod 600 /etc/random-seed
fi
echo "Saving random seed from /dev/urandom in /etc/random-seed."
dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2> /dev/null
# Clear /var/lock/subsys.
if [ -d /var/lock/subsys ]; then
  rm -f /var/lock/subsys/*
fi
# Turn off swap, then unmount local file systems.
echo "Turning off swap."
swapoff -a
echo "Unmounting local file systems."
# Don't remount UMSDOS root volumes:
if [ ! "`mount | head -1 | cut -d ' ' -f 5`" = "umsdos" ]; then
  umount -a -r -t nonfs
  echo "Remounting root filesystem read-only."
  mount -n -o remount,ro /
else
  umount -a -r -t nonfs,noumsdos,nosmbfs
fi
# This never hurts:
sync
# If we're using LVM, we need to deactivate the volume groups:
if [ -r /etc/lvmtab ]; then
  /sbin/vgchange -an
fi
# sleep 1 fixes problems with some hard drives that don't
# otherwise finish syncing before reboot or poweroff
sleep 1
# This is to ensure all processes have completed on SMP machines:
wait
if [ -x /sbin/genpowerd ]; then
  # See if this is a powerfail situation:
  if egrep "FAIL|SCRAM" /etc/upsstatus 1> /dev/null 2> /dev/null ; then
    # Signal UPS to shut off the inverter:
    /sbin/genpowerd -k /dev/ttyS4 tripp-nt
    if [ ! $? = 0 ]; then
      echo
      echo "There was an error signaling the UPS."
      echo "Perhaps you need to edit /etc/rc.d/rc.6 to configure"
      echo "the serial line and UPS type."
      # Wasting 15 seconds of precious power:
      sleep 15
    fi
  fi
fi
# Now halt (poweroff with APM kernels) or reboot.
if [ "$command" = "reboot" ]; then
  echo "Rebooting."
  reboot
else
  poweroff
fi
Ciao e ancora grazie Paolo
