Daemons in rc.conf: order ok?

This is the daemon line in rc.conf
DAEMONS=(syslog-ng hal network netfs crond cups alsa slim)
Is this ok? Do I need any other drivers? I want to print (cups!) stream music (via stream tuner) and look at my digital photos and manipulate them via gimp.

You could background the last four.
You could remove slim and instead edit /etc/inittab (id:5:initdefault: and run slim form the "x:5:respawn:" line). Why? it means you can turn the gui off and on easily (init 3, init 5 and from grub append 3 to the boot line to get text mode, multiuser. No need to make that change, just more flexibility.
Last edited by vacant (2007-11-17 11:46:11)

Similar Messages

  • Unable to start MPD as a daemon in rc.conf

    For some reason, MPD is unable to start as a daemon listed in rc.conf. I have tried running it as a background also and no go. MPD goes after ALSA, so I don't know what else is missing.
    Also, I cannot start mpd as root after logging in immediately after my system boots up. It just tells me it fails.
    However, I can start MPD after I log-in as a normal user and su into root, then manually typing /etc/rc.d/mpd start.
    Could it be that it is unable to find my music database during its attempt to start as a daemon in rc.conf? (because my music directory is in an NTFS partition, which is not listed in fstab because it is automatically mounted by hal)
    Could it be that I set "user" in /etc/mpd.conf as "mpd" that it is unable to start it as root?
    What could be the culprit?
    Last edited by orv (2007-12-24 19:22:49)

    Yup. MPD works and plays my music. It just wont start up as a daemon, but I know why now.
    The place where my music is located (/dev/sdb2) is an NTFS partition which isn't mounted by the time I get to the login prompt. This is because it is automounted AFTER i log-in a user account in which HAL automounts that drive.
    Adding an entry in FSTAB and not relying on automount by HAL solves the problem because now when I start it as a daemon, it can actually find my music library.

  • [Resolved] Daemons in rc.conf do not start

    rc.conf (only uncommented line):
    DAEMONS=(syslog-ng dbus crond wicd ntpd)
    The output of "rc.d list":
    [STOPPED][ ] alsa
    [STOPPED][ ] avahi-daemon
    [STOPPED][ ] avahi-dnsconfd
    [STOPPED][ ] bluetooth
    [STOPPED][ ] cpufreq
    [STOPPED][AUTO] crond
    [STOPPED][AUTO] dbus
    [STOPPED][ ] ftpd
    [STOPPED][ ] git-daemon
    [STOPPED][ ] gpm
    [STOPPED][ ] hwclock
    [STOPPED][ ] krb5-kadmind
    [STOPPED][ ] krb5-kdc
    [STOPPED][ ] krb5-kpropd
    [STOPPED][ ] mdadm
    [STOPPED][ ] mono
    [STOPPED][ ] net-auto-wired
    [STOPPED][ ] net-auto-wireless
    [STOPPED][ ] netfs
    [STOPPED][ ] net-profiles
    [STOPPED][ ] net-rename
    [STOPPED][ ] network
    [STOPPED][ ] networkmanager
    [STOPPED][ ] nscd
    [STOPPED][AUTO] ntpd
    [STOPPED][ ] ntpdate
    [STOPPED][ ] ppp
    [STOPPED][ ] smartd
    [STOPPED][ ] snmpd
    [STOPPED][AUTO] syslog-ng
    [STARTED][AUTO] wicd
    I started wicd manually to post this. It was [STOPPED][AUTO] after logging in.
    Last edited by theboos (2012-08-04 14:44:34)

    That file does not exist on my system. /var/log/boot is apparently not up to date, but here is the most recent boot that was logged:
    Thu Aug 2 07:46:10 2012: :: Adjusting system time and setting kernel time zone [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Starting udev daemon [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Triggering udev uevents [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Loading user-specified modules [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Waiting for udev uevents to be processed [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Configuring virtual consoles [BUSY] %G [DONE]
    Thu Aug 2 07:46:10 2012: :: Bringing up loopback interface [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Checking filesystems [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Remounting root and API filesystems [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Mounting local filesystems [BUSY] mount: mount point swap does not exist
    Thu Aug 2 07:46:10 2012: [FAIL]
    Thu Aug 2 07:46:10 2012: :: Activating swap [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Initializing random seed [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Removing leftover files [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Setting hostname: note-a [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: :: Saving dmesg log [BUSY] [DONE]
    Thu Aug 2 07:46:10 2012: INIT: Entering runlevel: 3
    Thu Aug 2 07:46:10 2012: :: Starting Syslog-NG [BUSY] [DONE]
    Thu Aug 2 07:46:11 2012: :: Starting crond daemon [BUSY] [DONE]
    Thu Aug 2 07:46:11 2012: :: Starting D-BUS system messagebus [BUSY] [DONE]
    Thu Aug 2 07:46:11 2012: :: Starting wicd Daemon [BUSY] [DONE]
    I have since fixed the swap problem by manually editing /etc/fstab.

  • [SOLVED]NFS Daemons broke Rc.conf - Arch unbootable

    Hello everyone,
    I've tried to share a partition with NFS and followed the steps using the ArchWiki (http://wiki.archlinux.org/index.php/Nfs).
    Following the point "deamons" I added
    /etc/rc.d/rpcbind
    /etc/rc.d/nfs-common
    /etc/rc.d/nfs-server
    to my /etc/rc.conf - however I have forgotten to put "start" behind each command.
    Now Arch won't boot, the FallBack function isn't working, too.
    How can i edit the rc.conf file?
    Thanks and cheers
    Last edited by METZGERR (2010-07-17 14:42:58)

    Okay, solved it by my own following these steps, booting from the Arch CD:
    mkdir /mnt/celtic #create a mount point
    mount /dev/sd3 /mnt/celtic # mount partition: change /dev/sda3 with the name of partition where you installed root (/)...
    cd /mnt/celtic/etc # move to /etc
    nano rc.conf #edit your rc.conf

  • Start daemons with screen: rtorrent, irssi

    Hello, community!
    I run a headless server and, as of now, it boots with rtorrent as a daemon, using screen, like so:
    #!/bin/bash
    # file: /etc/rc.d/rtorrentd
    USER=myusername
    . /etc/rc.conf
    . /etc/rc.d/functions
    case "$1" in
    start)
    stat_busy "Starting rtorrent Service"
    su $USER -c 'screen -d -m -S rtorrent $USER' &> /dev/null
    if [ $? -gt 0 ]; then
    stat_fail
    else
    add_daemon rtorrentd
    stat_done
    fi
    stop)
    stat_busy "Stopping rtorrent Service"
    killall -w -s 2 /usr/bin/rtorrent &> /dev/null
    if [ $? -gt 0 ]; then
    stat_fail
    else
    rm_daemon rtorrentd
    stat_done
    fi
    restart)
    $0 stop
    sleep 3
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    The usual, as per our wiki and rtorrent documentation.
    I would like to do the same with irssi, but maybe I can't due to not completely understanding this statement:
    screen -d -m -S rtorrent $USER
    I know the "-d -m" part initializes screen and does not attach to it. "-S rtorrent" names that screen as "rtorrent" (I can check that doing
    C-a "
    when inside a screen)
    But that is as far as I know... I tried using the same script and replacing rtorrent -> irssi, but to no avail, it doesn't start by doing sudo /etc/rc.d/irssid start
    I don't need irssi to start at boot, but it would be nice just to
    sudo /etc/rc.d/irssid start
    and have my IRC setup ready. Any hints? Common mistakes?
    Thank you for your time
    edit: I also tried to follow irssi's guide but I can't create another screen session. (as in: only rtorrent has its own screen)
    Last edited by fhtagn (2011-01-26 05:25:57)

    Well, after messing with .screenrc I ended up doing it with a little help from the wiki.
    Now, my /etc/rc.d/irssi has:
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    DAEMON=irssi
    USER=<username>
    PID=$(pidof -o %PPID $DAEMON)
    [ -r /etc/conf.d/irssi ] && . /etc/conf.d/irssi
    case "$1" in
    start)
    stat_busy "Starting $DAEMON Service"
    [ -z "$PID" ] && su $USER -c 'screen -dm -S '$DAEMON' -c ~/.irssi/.screenrc_irssi' &> /dev/null
    if [ $? != 0 ]; then
    stat_fail
    else
    add_daemon $DAEMON
    stat_done
    fi
    stop)
    stat_busy "Stopping $DAEMON Service"
    [ -n "$PID" ] && kill $PID &>/dev/null
    if [ $? != 0 ]; then
    stat_fail
    else
    rm_daemon $DAEMON
    stat_done
    fi
    restart)
    $0 stop
    sleep 3
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    and in ~/.irssi/.screenrc_irssi I have
    screen -t irssi irssi
    And it works!
    Is it overkill? Why do I need to have
    [ -z "$PID" ] && su $USER -c 'screen -dm -S '$DAEMON' -c ~/.irssi/.screenrc_irssi' &> /dev/null
    with '$DAEMON' instead of $DAEMON ? Otherwise it does not work... Probably something to do with bash

  • What's the relationship between inittab and rc.conf? [Solved]

    inittab starts programs at startup, while rc.conf also starts daemons. Which one is exectued first and which one has higher priority?
    Last edited by xiaweitang (2010-01-17 21:26:09)

    AFAIK, inittab specifies the default runlevel to boot into, whereas rc.conf's DAEMONS array specifies the daemons to be started when entering runlevels 3 or 5. If you decide to boot into X by setting the default runlevel to 5, the daemons in rc.conf will be started and then X will start in the way you set it in inittab. You can also boot into X by leaving inittab default (booting to runlevel 3) and starting a graphical login daemon (gdm, kdm, slim...) in rc.conf. The latter has a downside: you can't avoid starting the graphical login when entering runlevel 3. With the former method, you can add a 3 at the end of the kernel line in grub to boot to runlevel 3 (without X).

  • Automounting smb share without network daemon

    Hello everyone, I have an issue. I'm using networkmanager to manage wireless connections. While installing networkmanger, the wiki told you must remove network daemon from rc.conf, and use networkmanager instead: that's exactly what I did, and networkmanager does the job just well. I told you that because I think that it is the reason why i'm failing to auto mount smb share through editing fstab. If i put in fstab the command described on the wiki (cisf mounting) I get a FAIL at booting, it says it can't find the share. Otherwise am I wrong and the reason must be related to something else, like syntax errors? Thank you.

    Trying to follow your advice, I did the following: I put into /etc/fstab
    //server/Videos$ /mnt/video cifs noauto,noatime,username=Y3KNET/Arch,password=Ilove69,ip=192.168.1.1 0 0
    //server/Public$ /mnt/public cifs noauto,noatime,username=Y3KNET/Arch,password=Ilove69,ip=192.168.1.1 0 0
    then, in /etc/rc.local:
    mount /mnt/video
    mount /mnt/public
    and, as a second try,
    sudo mount /mnt/video
    sudo mount /mnt/public
    but without luck: no mount actually takes place. Anyway, if i type the above code after logon into kde, everything works flawlessly. Where am I mistaken?
    Last edited by Y3k (2011-12-03 23:06:36)

  • Login prompt mixed up with daemons

    Hi,
    I'm getting login prompt mixed up with daemons. Here is the sreenshot.
    [dudko@archy ~]$ grep -i daemons= /etc/rc.conf
    DAEMONS=(wicd)
    Could you help me, please?
    Thanks.:)

    ewaller wrote:Are you using systemd or the are you using the default initscripts?
    default.
    HeSaid wrote:
    You need dbus in your daemons before wicd.
    DAEMONS=(dbus wicd)
    You will probably need other daemons to make other things work, for example cupsd for printing.
    Here is my daemon list:
    DAEMONS=(syslog-ng dbus wicd @acpid @laptop-mode @cupsd @cpufreq @ntpd @crond)
    Neal
    Sorry. My fault. That output was pasted after my last try without dbus.
    Normaly it looks like this
    DAEMONS=(syslog-ng dbus @wicd @ntpd @alsa @sshd)

  • [SOLVED] Trac standalone server refusing to start as daemon

    Dear people,
    Few months ago I set up trac to manage/access my svn repositories at work. The standalone tracd server got started as daemon from rc.conf, authentication with htdigest, everything was just fine.  Yesterday I realized that tracd was not reachable, and trying a start/restart:
    # /etc/rc.d/tracd start
    Usage: tracd [options] [projenv] ...
    tracd: error: no such option: --auth '*',/srv/GroupWiki/htdigest,MyDomain.org
    The relevant part of /etc/conf.d/tracd is:
    PORT=80
    AUTH="'*',/srv/proj1/htdigest,MyDomain.org"
    PROJECT="/srv/proj1 /srv/proj2"
    Thing is, if I start tracd from the command line using those same options, it runs fine:
    # tracd -p 80 --auth "'*',/srv/proj1/htdigest,MyDomain.org" /srv/proj1 /srv/proj2
    Server starting in PID 25260.
    Serving on 0.0.0.0:80 view at http://127.0.0.1:80/
    Using HTTP/1.1 protocol version
    Any hint?
    domanov
    Last edited by domanov (2010-10-11 09:57:42)

    Thanks Pingwinski! There is a problem with quoting, but not in the tracd.conf. Well, I had to edit the /etc/rc.d/tracd file to remove the extra quoting around "$AUTH" (and by the way, remove the $SINGLE variable, I didn't find any definition or reference to that...!!
    Before:
    tracd $SINGLE -d $HOSTNAME $PORT "$AUTH" $PROJECT
    After:
    tracd -d $HOSTNAME $PORT $AUTH $PROJECT
    In conf.d/tracd.conf the line doesn't need extra escaping, i.e. is working like this:
    AUTH="'*',/srv/project/htdigest,MyDomain.org"
    Sending a message to the maintainer to take a look at this.
    Greets,
    Domanov

  • Wifi configuration (netcfg2/rc.conf) fails to "auto work on boot"

    Hey :- ) ,
    I have been trying to figure out how to configure my laptop to get associated AND receive its static ip  "on boot". In short i have tried various configurations and different methods, but seems like with some of them i manage to get my wifi card an ip but let in the "not-associated-land" , while with others i get it associated with my wireless router but the interface cant get brought up, so i cant ping anything.Lets get the details here:
    First of all, laptop's wifi card is the Intel Wireless Pro 4965 one, and the module used is the corresponding iwl4965.
    Under simple manual editing of rc.conf the way described in the wiki wlan0 interface succesfully gets configured with the desired static IP  plus the interface gets brought up succesfully on boot.Unfortunately though it is let in the "Cell: not associated" status.
    Here you can see ifconfig wlan0 and iwconfig wlan0 after booting is completed:
    ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr 00:1D:E0:5A:4B:63
    inet addr:10.0.0.12 Bcast:10.0.0.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    iwconfig wlan0
    wlan0 IEEE 802.11g ESSID:"<myessid>"
    Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
    Tx-Power=27 dBm
    Retry min limit:7 RTS thr:off Fragment thr=2346 B
    Link Quality:0 Signal level:0 Noise level:0
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    Simply issuing :
    iwconfig wlan0 mode managed essid <myessid>
    gets everything working , but i need zero configuration connection on boot.So no joy.
    and ifconfig wlan0 , iwconfig wlan0 looks like
    ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr 00:1D:E0:5A:4B:63
    inet addr:10.0.0.12 Bcast:10.0.0.255 Mask:255.255.255.0
    inet6 addr: fe80::21d:e0ff:fe5a:4b63/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:15 errors:0 dropped:0 overruns:0 frame:0
    TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1609 (1.5 Kb) TX bytes:1897 (1.8 Kb)
    iwconfig wlan0
    wlan0 IEEE 802.11g ESSID:"<myessid>"
    Mode:Managed Frequency:2.412 GHz Access Point: 00:14:7F:84:8D:67
    Bit Rate=54 Mb/s Tx-Power=27 dBm
    Retry min limit:7 RTS thr:off Fragment thr=2346 B
    Encryption key:off
    Link Quality=100/100 Signal level=-44 dBm Noise level=-93 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    Under netcfg2 , using an edited version of the "complete.example" my wifi card gets associated with my AP on boot , but unfortunately it doesnt get brought up (according to man ifconfig , this happens when it fails to get an IP). In this case issuing :
    ifconfig wlan0 up
    iwconfig wlan0 essid <myessid>
    gets everything working again .But still its not 100% automated.
    Here i am posting my files.Some parts of it are commented/disabled to swap among netcfg2 configuration and manual rc.conf edited configuration.
    here is my /etc/rc.conf network part  file
    HOSTNAME="robonoobs"
    lo="lo 127.0.0.1"
    #WLAN_INTERFACE=(wlan0)
    #eth0="eth0 10.0.0.12 netmask 255.255.255.0 broadcast 10.0.0.255"
    #wlan0="wlan0 10.0.0.12 netmask 255.255.255.0 broadcast 10.0.0.255"
    #wlan_wlan0="wlan0 mode managed essid <myessid>"
    #following /bin/sleep 5 is there just to get a chance to see messages without searching logs during #testing period
    #echo "SLEEP 5"
    #/bin/sleep 5
    #WIFI_WAIT = 10
    INTERFACES=(lo !eth0 !wlan0)
    gateway="default gw 10.0.0.1"
    ROUTES=(gateway)
    # Network profiles are found in /etc/network-profiles
    NET_PROFILES=(!wifi_init)
    #complete found at /etc/network.d/
    NETWORKS=(complete !wifi_init)
    # DAEMONS
    DAEMONS=(syslog-ng netfs !crond alsa !fam hal network net-profiles kdm)
    here comes my netcfg2 profile named "complete"
    CONNECTION="wireless"
    DESCRIPTION="Very verbose complete wireless example"
    INTERFACE=wlan0
    HOSTNAME=robonoobs
    # Interface Settings (use IFOPTS="dhcp" for DHCP)
    IP="static"
    IFOPTS="inet 10.0.0.12 netmask 255.255.255.0 broadcast 10.0.0.255"
    GATEWAY=10.0.0.1
    # DHCP Example
    #IFOPTS=dhcp
    #DHCP_TIMEOUT=20 # Default is 10.
    #DHCP_OPTIONS="" # Extra arguments for dhcpcd
    # DNS Settings (optional)
    DOMAIN=robonoobs.domain.org
    DNS1=10.0.0.1
    DNS2=
    SEARCH=
    # Standard Wireless Settings
    ESSID=<myessid>
    SECURITY=none # One of wep, wpa, wpa-config, none
    #KEY="SomePasskey"
    # Scans to see if network is available before connecting (reccomended)
    SCAN="NO"
    #tried with this one set to "YES" with the same result, gets associated but is not brought up
    # Time to wait to connect to a network. Default 15.
    TIMEOUT=15
    # Pass *custom* options to iwconfig. Usually not needed (optional)
    IWOPTS="wlan0 mode managed essid $ESSID"
    # Any extra arguments for wpa_supplicant
    WPA_OPTS=
    # For SECURITY='wpa-config' only - filename of a wpa-supplicant config
    WPA_CONF=
    # Commands to run at various stages of configuration
    PRE_UP=
    POST_UP=
    PRE_DOWN=
    POST_DOWN="some command"
    here follows "iwconfig wlan0" right after booting is completed, which shows wlan0 associated with the AP in question:
    wlan0 IEEE 802.11g ESSID:"<myessid>"
    Mode:Managed Frequency:2.412 GHz Access Point: 00:14:7F:84:8D:67
    Bit Rate=54 Mb/s Tx-Power=27 dBm
    Retry min limit:7 RTS thr:off Fragment thr=2346 B
    Encryption key:off
    Link Quality=88/100 Signal level=-45 dBm Noise level=-127 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    here is ifconfig wlan0 right after booting up:
    wlan0 Link encap:Ethernet HWaddr 00:1D:E0:5A:4B:63
    inet addr:10.0.0.12 Bcast:10.0.0.255 Mask:255.255.255.0
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    At this part i am only able to ping 10.0.0.12 .
    Here ere are both of them after issuing ifconfig wlan0 up and iwconfig wlan0  essid <myessid>
    ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr 00:1D:E0:5A:4B:63
    inet addr:10.0.0.12 Bcast:10.0.0.255 Mask:255.255.255.0
    inet6 addr: fe80::21d:e0ff:fe5a:4b63/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:24 errors:0 dropped:0 overruns:0 frame:0
    TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2072 (2.0 Kb) TX bytes:2160 (2.1 Kb)
    iwconfig wlan0 essid <myessid>
    wlan0 IEEE 802.11g ESSID:"<myessid>"
    Mode:Managed Frequency:2.412 GHz Access Point: 00:14:7F:84:8D:67
    Bit Rate=54 Mb/s Tx-Power=27 dBm
    Retry min limit:7 RTS thr:off Fragment thr=2346 B
    Encryption key:off
    Link Quality=100/100 Signal level=-40 dBm Noise level=-92 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    At this point i can ping all my local network devices , such as my gateway at 10.0.0.1. but no internet "connect: Network is unreachable" after issuing
    /etc/rc.d/network restart
    everything is up and running and i have access to the net.This seems quite a puzzle to me, since restarting network should reset everything and i should be able to ping only 10.0.0.12 , no?
    Thats it,  unfortunately i didnt manage to get a workaround on that alone ...propably i am overlooking something obvious badly.
    Any suggestions on how to fix this, or any other way on geting wifi completely working on boot without touching my laptop will be greatly appreciated.
    IMG

    Well , since this issue got seriously on my nervers and took me a day trying things out with no luck, i studied a bit of shell programming and wrote a script to configure my net on boot, copied it with the correct permissions in /etc/rc.d/    , added it in my daemons at rc.conf, and there you go! Net on boot finally : -).
    #!/bin/sh
    echo "sleeping to ensure network is up"
    /bin/sleep 2
    until [ "$(ifconfig wlan0 | grep -c "UP")" != "0" ]
    do
    echo "waiting for wlan0 interface to get UP"
    /bin/sleep 2
    done
    echo "checking if wlan0 is associated "
    while [ "$(iwconfig wlan0 | grep -c "Access Point: Not-Associated")" != "0" ]
    do
    $(iwconfig wlan0 essid Virus_Home)
    echo "sleeping for 20 seconds to give hardware some time to associate "
    /bin/sleep 20
    done
    exit 0
    However i dont concider my solution  elegant , so if anyone can figure out why net doesnt get configured correctly on boot without my script i would love to know as well.
    enjoy,
    IMG

  • Kde daemon crash at startup. kde on Arch.

    I just installed Arch the first time. after some unsuccessful attemps to with awesome, I tried to install xfce and kde. I managed to get both running without problems, but after further installation of additional packages (like amarok1, alsa, kile, qtoctave, stellarium, GIMP, Geeqie, Ktorrent, Kopete), the KDE daemon crashes at startup ad a kde crash bug report is displayed. I can't see any window content or windows any more, but other functionality like tabbing through windows or quicklaunch still works. I can get window content if I kill the plasma-desktop. (There also isn't any sound.)
    I followed thou the beginners guide and also official installation, checked the archlinux wiki on KDE and others, googled. I can't figure out what happened.
    I'm running following Daemons:
    /etc/rc.conf
    DAEMONS=(hwclock @syslog-ng dbus netfs crond alsa @cups)
    I start kdm through etc/inittab as suggested on archwiki kde.
    startx runs fine, I suspect thou that I'm missing some xinit config files, but not sure thou what is needed as I start kdm through inittab.
    I'd be glad for any suggestions or help! =)
    full /etc/inittab, /etc/rc.conf, /var/log/Xorg.0.log on:
    http://pastebin.com/UBysin7q
    I have a Lenovo X220 Laptop plus externalmonitor, which runs fine.

    Problem solved. I reinstalled arch and kde desktop environment. everything works smooth now
    thank you thou anyway for your help. I looked into ~/.xsession-errors , but there we're just too many error messages. I believe the problem was linked to phonon-vlc.

  • Networkmanager daemon does not connect ethernet while bootup...

    after last Kernelupdate.
    When i do a /etc/rc.d/network restart it connect.
    from /var/log/errors.log:
    NetworkManager: nm_ip4_config_add_nameserver: assertion `nameserver != s' failed
    NetworkManager: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed
    Last edited by killajoe (2010-02-10 18:37:19)

    killajoe wrote:
    Yes i found it by my self shame on me ...
    hal must be before networkmanager now! (daemons array @ rc.conf)
    the current networkmanager doesn't depend on hal anymore but i think it needs dbus to be started before.

  • Daemon dont want to start

    Just installed woodoo without internet connect
    so I typed in bash:
    dhcpcd
    and I'm out to the net.
    But I don't want to do that thing every time I'm boot up my computer.
    So I read this: http://wiki.archlinux.org/index.php/Daemons , and typed in bash:
    /etc/rc.d/dhcpcd start
    and get this back:
    bash: /etc/rc.d/dhcpcd: No such file or directory
    ..so I need some help to get dhcpcd act like a daemon, sombody?
    Last edited by sevenenx (2007-03-02 15:24:45)

    I am reading your responses and also have a hard time understanding what you want.
    Are you connecting directly or through a wireless device?
               If directly have you installed ifplugd and added the daemon to rc.conf.
               If via wireless:
                                   are you roaming or consistently connecting to the same device?
                                   on boot up do you receive any errors? (8B2A etc)
    Would you please give us more information so we can accurately determine what needs to be changed in your setup. i.e. Configuration files and your setup.
    I personally roam a lot so on boot I do not start my network connections but start ifplugd. Then I have small script that I can use if I am wireless to connect to whatever router is nearby. The benefit is great for roaming as boot time is really decreased and starting the script takes milliseconds as then it knows exactly who to connect to. You could also set dhcpcd to start when you start your DE or WM.

  • Basic daemon question

    Howdy,
    I just recently finished a fresh install of Arch and am planning to use KDE.  Like an idiot, I put the kdm daemon into rc.conf but forgot to list hal.  What can I do to edit rc.conf given that my keyboard and mouse stop working as soon as kdm is launched?

    press ctrl+alt+f1 (f1-f7). you will come to a tty screen. there you can edit rc.conf. if that doesn't work, then you can always get a live cd and edit rc.conf as root.

  • Modified rc.multi for starting daemons

    I'd like to share some of my modification about the daemon starting process here
    What I've done is to add an option for DAEMONS in rc.conf, which allows starting a daemon after all the previous dependencies are actually done.
    This is done by a creating a named pipe for a before it starts, and removing it after the daemon completes.
    Daemons with dependencies are guaranteed to either be blocked by reading the named pipe or fail to find the named pipe (which means it already completed) by some tricks.
    Here is the snippet from the rc.multi:
    depsd="/var/lock/boot"
    mkdir -p "$depsd"
    rm -f "$depsd"/*
    start_daemon_dep(){
    local dep daemon="$1"
    shift
    for dep; do
    cat "$depsd/$dep" 2>/dev/null
    done
    start_daemon "$daemon"
    /etc/rc.d/daemon_complete "$depsd/$daemon"
    make_dep(){
    mkfifo "$depsd/$1"
    (cat "$depsd/$1") 2>/dev/null &
    stat_bkgd "Starting daemon $1"
    # Start daemons
    for daemon in "${DAEMONS[@]}"; do
    d=(${daemon//:/ })
    case ${d[0]:0:1} in
    '!') continue;;
    make_dep "${d[0]#@}"
    (start_daemon_dep ${d[0]#@} ${d[1]//,/ }) 1>/dev/null &
    make_dep "${d[0]}"
    start_daemon_dep ${d[0]} ${d[1]//,/ } 1>/dev/null
    esac
    done
    /etc/rc.d/daemon_complete is the programing doing the atomic guarantee.
    daemon_complete.c:
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <stdio.h>
    #include <fcntl.h>
    int main(int argc, char **argv){
    int fd;
    if((fd = open(argv[1], O_WRONLY))< 0)
    return 1;
    if(unlink(argv[1]) < 0)
    return 1;
    if(close(fd) < 0)
    return 1;
    return 0;
    Then we can write something like the following in rc.conf:
    DAEMONS=(hwclock
    rsyslogd
    @network
    @ntpdate:network
    @dnsmasq:network
    dbus
    kdm:dbus,network
    crond)
    This means that ntpdate is running in background, but it won't start until its dependency, network, completes in background.
    Multiple dependencies can be applied like the one kdm does: it relies on both dbus and network.
    However, changing DAEMONS array syntax breaks some functionalities in /etc/rc.d/functions, so we have to accordingly change the file.
    The file is here.
    edit: I shouldn't put the executable in /etc/rc.d/functions.d/, so now it's in /etc/rc.d/
    Last edited by realturner (2012-04-08 11:13:15)

    I cannot contribute any specific thoughts yet,
    but this is interesting.
    I'll just post and follow this thread for the moment

Maybe you are looking for

  • EA2700 WAN PORT open to the world by default?

    I just noticed last night that my EA2700 router was accessible on the WAN port, from the Internet, on ports 80 and 53. I am running router firmware 1.0.14 and the update utility reports that there is no newer version. Remote management is NOT enabled

  • How can I delete the reading list in Safari on iPad 2?

    I would like to delete the reading list in Safari on my iPad 2. How do I have to do it?

  • Code for button located inside the MC

    I decided to rearange my flash site and now things don't work. I used to have an image collage where all the images were buttons and each image was located on the stage ( which made a stage with 10+ loose images) I made each image a button. Below is

  • Child cat having two parent cat

    Hi All, I would like to have dimension hierarchy in obiee. We have a table dimension having skipped hierarchy with category and subcategory. Some subcategory have two or more category as parent. category subcategory null 1 A 2 B 2 null 3 null 4 C 5 D

  • FM to Find Fiscal Year

    Hi Is there any FM to find the Fiscal Year if i give the From and To Date ?