Pagina 1 di 1

Problemi con avvio dbus

Inviato: ven 16 nov 2007, 14:28
da robbybby
Ho una Slack 11.0
Ho scaricato e installato il pacchetto dbus-1.0.2-i486-3sl.tgz presente su questo sito.
Dove averlo installato l'ho lanciato eseguendo rc.messagebus.
Fatto un ps -A, lo vedo in esecuzione.
Bluez e tutto il resto del bluetooth che dipende da lui funziona, e infatti mi collego al cellulare via BT senza nessun problema.
Cosi', tutto contento, richiamo rc.messagebus in rc.local, e mi assicuro che rc.messagebus abbia il bit di esecuzione impostato.
Il giorno dopo, all'accensione del PC, scopro che il dbus-daemon non e' in esecuzione (e quindi non va tutto il BT).

Ho fatto un po' di prove e ho scoperto che:
rc.messagebus start da rc.local non riesce a lanciare il demone (l'output a video non segnala niente di sbagliato, e nei log di sistema non ho trovato niente).

Se, da root, lancio rc.messagebus start, allora tutto funziona correttamente, e mi ritrovo correttamente il demone in escuzione.

Qualcuno sa dirmi perche', e come sistemare la cosa? :?:
rc.messagebus start e' l'ultima riga di rc.local.

Inviato: ven 16 nov 2007, 18:18
da absinthe
posta rc.local

M

Inviato: ven 16 nov 2007, 18:21
da robbybby
Eccolo!

Codice: Seleziona tutto

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.

#set the overcommit memory to no more that the available amount
#/sbin/sysctl -w vm.overcommit_memory=2

#load hw monitor module, specific to my computer
modprobe w83627hf

#load agpgart module
#modprobe agpgart

#load dri module for mga (this must be loaded after agpgart)
#modprobe mga

#load ip_tables
#echo loading ip_tables
#modprobe ip_tables

##load ip_conntrack
#echo loading ip_conntrack
#modprobe ip_conntrack


##load ip_conntrack_ftp
#echo loading ip_conntrack_ftp
#modprobe ip_conntrack_ftp


#load ip_nat_ftp: used for active ftp
#echo loading ip_nat_ftp
#modprobe ip_nat_ftp


#disable Explicit Congestion Notification: most internet servers do not
#connect if it is enabled, because of a bug inside them
if [ -e /proc/sys/net/ipv4/tcp_ecn ] ; then
    echo 0 > /proc/sys/net/ipv4/tcp_ecn
    echo "ECN disabled"
fi


#enable syncookies
if [ -e /proc/sys/net/ipv4/tcp_syncookies ] ; then
    echo 1 > /proc/sys/net/ipv4/tcp_syncookies
    echo "Syncookies enabled"
fi


#enable IP forwarding
#if [ -e /proc/sys/net/ipv4/ip_forward ] ; then
#    echo 1 > /proc/sys/net/ipv4/ip_forward
#    echo IP forwarding enabled
#fi

#disables replies to ICMP
if [ -e /proc/sys/net/ipv4/icmp_echo_ignore_all ] ; then
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
    echo "ICMP echo replies disabled"
fi

#disable echo broadcasts replies (anti-smurf)
if [ -e /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts ] ; then
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    echo "Echo broadcasts replies disabled (anti-smurf)"
fi


#do not accept IP packets with source routing
if [ -e /proc/sys/net/ipv4/conf/all/accept_source_route ] ; then
    echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
    echo "IP packets with source routing will be rejected"
fi


#do not accept ICMP redirect
if [ -e /proc/sys/net/ipv4/conf/all/accept_redirects ] ; then
    echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects
    echo "ICMP redirect packets will be rejected"
fi


#enable bogus error messages protection
if [ -e /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses ] ; then
    echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    echo "Protect against bogus error messages enabled"
fi


#enable log of martians packets
if [ -e /proc/sys/net/ipv4/conf/all/log_martians ] ; then
    echo 1 > /proc/sys/net/ipv4/conf/all/log_martians
    echo "Logging of martians enabled"
fi


#set iptables firewall rules
if [ -x /etc/rc.d/rc.iptables ] ; then
  . /etc/rc.d/rc.iptables
fi

#PopFile spam proxy
if [ -x /etc/rc.d/rc.popfile ] ; then
  . /etc/rc.d/rc.popfile start
fi

#logrotate, for those system not always on
echo "Rotate logs"
/etc/cron.daily/logrotate

#set the numlock key for the first seven consoles
for t in 1 2 3 4 5 6
do
    /usr/bin/setleds -D +num -caps < /dev/tty$t > /dev/null
done

touch /var/lock/subsys/local


#Fuse
# To disable Fuse, chmod rc.fuse to 644
if [ -x /etc/rc.d/rc.fuse ]; then
	sh /etc/rc.d/rc.fuse start
fi

#Bluetooth
# To disable Bluetooth, chmod rc.bluetooth and rc.messagebus to 644
# rc.messagebus starts the dbus daemon, used by bluez, so it must be
# started before starting rc.bluetooth
if [ -x /etc/rc.d/rc.messagebus ]; then
	sh /etc/rc.d/rc.messagebus start
fi

if [ -x /etc/rc.d/rc.bluetooth ]; then
	sh /etc/rc.d/rc.bluetooth start
fi
[/code]

Inviato: ven 16 nov 2007, 21:00
da absinthe
hai provato lanciare semplicemente senza anteporre sh? mi pare di capire che lo script sia comunque eseguito: ne sei sicuro? non รจ che qualche altro script esca facendo saltare il lancio di rc.messagebus?

M

Inviato: ven 16 nov 2007, 21:08
da robbybby
Lo script all'avvio viene eseguito fino alla fine: ne vedo l'output a video.
Vengono eseguiti sia rc.messagebus, che il successivo rc.bluetooth, ma il demone dbus-daemon, per qualche motivo, non si avvia.