You are not logged in.

#1 2009-06-05 10:35:11

skysurfer
Member
From: Greece/Thessaloniki
Registered: 2007-08-10
Posts: 30
Website

syslog-ng and others wont start on boot

I've noticed lately that syslog-ng won't start automatically on boot! I have it on rc.conf but again after Arch boots, i have to manually start it.

The same thing happens with a custom init.script i have for auto-starting opendchub. On boot it won't start but if i start it manually it works ok.

Here comes rc.conf and opendchub init script:

rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
LOCALE="en_US.utf8"
HARDWARECLOCK="local"
USEDIRECTISA="no"
TIMEZONE="Europe/Athens"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
MOD_AUTOLOAD="yes"
MODULES=(mii r8169 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-pcsp snd-hda-intel soundcore vboxdrv vboxnetflt)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
HOSTNAME="ovelix"
lo="lo 127.0.0.1"
eth0="eth0 10.122.20.70 netmask 255.255.255.192 broadcast 10.122.20.127"
INTERFACES=(lo eth0)

gateway="default gw 10.122.20.65"
ROUTES=(gateway)
 
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
DAEMONS=(syslog-ng network hal fam portmap netfs ntpd acpid sensors @hddtemp @alsa @snmpd @crond @sshd @named @httpd @mysqld @samba @openfired @smartd @webmin @squid @teamspeak2-server @proftpd @vsftpd @virtualbox @opendchub @upsd @gdm)

opendchub init.scrip

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
    
    start)
        stat_busy "Starting OpenDChub"
            opendchub > /dev/null
        stat_done
    ;;
    
    stop)
        stat_busy "Stopping OpenDChub"
    killall -9 opendchub > /dev/null
        stat_done
    ;;
    
    restart)
        $0 stop
        $0 start
    ;;

    status)
    ps auxww | egrep opendchub | egrep -v "($0|egrep)"
    ;;

    *)
    echo "usage: $0 {start|stop|restart}"
    
esac

exit 0

Is there any mistake on rc.conf that should be fixed?


Archlinux rulez tongue

My home server running Arch 24/7:
Intel Atom 330, 2GB RAM, 2TB Disks

Offline

Board footer

Powered by FluxBB