Find the answer to your Linux question:
Results 1 to 5 of 5
What's the command to see what daemons are currently running? A few of my daemons keep failing to load: Code: [root@vaio ~]# /etc/rc.d/tor start /etc/rc.conf: line 67: unexpected EOF while ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User ImNeat's Avatar
    Join Date
    Feb 2006
    Location
    N. America
    Posts
    392

    How to see running daemons?


    What's the command to see what daemons are currently running?

    A few of my daemons keep failing to load:
    Code:
    [root@vaio ~]# /etc/rc.d/tor start
    /etc/rc.conf: line 67: unexpected EOF while looking for matching `"'
    /etc/rc.conf: line 95: syntax error: unexpected end of file
    :: Starting Tor Daemon                                                   [FAIL] 
    [root@vaio ~]# /etc/rc.d/privoxy start
    /etc/rc.conf: line 67: unexpected EOF while looking for matching `"'
    /etc/rc.conf: line 95: syntax error: unexpected end of file
    :: Starting Privoxy                                                      [FAIL]
    Any ideas why this is happening?
    10" Sony Vaio SRX99P 850MHz P3-M 256MB RAM 20GB HD : ArchLinux
    14" Dell Inspiron 1420N 2GHz Core2Duo 2GB RAM 160GB HD : Xubuntu

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I'm sure not an Arch Linux guy, but this
    Code:
    /etc/rc.conf: line 67: unexpected EOF while looking for matching `"'
    is probably a good clue.

    Any name/value pair in /etc/rc.conf where you forgot a quote (")?

  3. #3
    Linux Enthusiast
    Join Date
    Dec 2004
    Posts
    637
    To list running daemons type the following in a terminal:

    ps aux

  4. #4
    Linux User ImNeat's Avatar
    Join Date
    Feb 2006
    Location
    N. America
    Posts
    392
    I think found the first error - I had
    Code:
    eth2="dhcp'
    It's strange though - I only counted (and recounted and recounted) 60 lines. How do text files calculate lines? I've been getting those two errors for a long time (I see them at every boot-up), but was always confused because the real line 67 is fine.

    As for the other line - how should the file end properly? Then end used to look like this:
    Code:
    #End of file
    And I would get the EOF error for 'line 91'

    So I did this:
    Code:
    #End of file
    #
    #
    #
    #
    And now I get the EOF error for 'line 95'

    What am I doing incorrectly?

    **EDIT**
    I am making progress. It seems that the two errors are now gone. Now I only get this output:
    Code:
    [root@vaio ~]# /etc/rc.d/tor start
    :: Starting Tor Daemon                                                                            [FAIL] 
    [root@vaio ~]# /etc/rc.d/privoxy start
    :: Starting Privoxy                                                                               [FAIL] 
    [root@vaio ~]#
    10" Sony Vaio SRX99P 850MHz P3-M 256MB RAM 20GB HD : ArchLinux
    14" Dell Inspiron 1420N 2GHz Core2Duo 2GB RAM 160GB HD : Xubuntu

  5. #5
    Linux User ImNeat's Avatar
    Join Date
    Feb 2006
    Location
    N. America
    Posts
    392
    As for viewing running daemons - I can't quite understand the ps aux output:
    Code:
    [root@vaio ~]# ps aux
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.1  0.2   1528   536 ?        Ss   18:33   0:00 init [3]                               
    root         2  0.0  0.0      0     0 ?        S    18:33   0:00 [migration/0]
    root         3  0.0  0.0      0     0 ?        SN   18:33   0:00 [ksoftirqd/0]
    root         4  0.0  0.0      0     0 ?        S    18:33   0:00 [watchdog/0]
    root         5  0.0  0.0      0     0 ?        S<   18:33   0:00 [events/0]
    root         6  0.0  0.0      0     0 ?        S<   18:33   0:00 [khelper]
    root         7  0.0  0.0      0     0 ?        S<   18:33   0:00 [kthread]
    root        10  0.0  0.0      0     0 ?        S<   18:33   0:00 [kblockd/0]
    root        11  0.0  0.0      0     0 ?        S<   18:33   0:00 [kacpid]
    root        95  0.0  0.0      0     0 ?        S<   18:33   0:00 [kseriod]
    root       137  0.0  0.0      0     0 ?        S    18:33   0:00 [pdflush]
    root       138  0.0  0.0      0     0 ?        S    18:33   0:00 [pdflush]
    root       139  0.0  0.0      0     0 ?        S<   18:33   0:00 [kswapd0]
    root       140  0.0  0.0      0     0 ?        S<   18:33   0:00 [aio/0]
    root       775  0.0  0.0      0     0 ?        S<   18:33   0:00 [kjournald]
    root       812  0.0  0.0      0     0 ?        S<   18:33   0:00 [khubd]
    root       828  0.1  0.2   1596   572 ?        S<s  18:33   0:00 /sbin/udevd --daemon
    root      1720  0.0  0.0      0     0 ?        S<   18:34   0:00 [kpsmoused]
    root      2013  0.0  0.0      0     0 ?        S<   18:34   0:00 [pccardd]
    root      2019  0.0  0.0      0     0 ?        S<   18:34   0:00 [pccardd]
    root      2090  0.0  0.0      0     0 ?        S<   18:34   0:00 [khpsbpkt]
    root      2093  0.0  0.0      0     0 ?        S    18:34   0:00 [knodemgrd_0]
    root      2124  0.0  0.0      0     0 ?        S<   18:34   0:00 [scsi_eh_0]
    root      2125  0.0  0.0      0     0 ?        S<   18:34   0:00 [usb-storage]
    root      2579  0.0  0.4   2192  1056 tty1     Ss   18:34   0:00 /bin/login --        
    root      2580  0.0  0.1   1528   500 tty2     Ss+  18:34   0:00 /sbin/agetty 38400 vc/2 linux
    root      2581  0.0  0.1   1524   500 tty3     Ss+  18:34   0:00 /sbin/agetty 38400 vc/3 linux
    root      2582  0.0  0.1   1528   504 tty4     Ss+  18:34   0:00 /sbin/agetty 38400 vc/4 linux
    root      2583  0.0  0.1   1528   504 tty5     Ss+  18:34   0:00 /sbin/agetty 38400 vc/5 linux
    root      2584  0.0  0.1   1524   500 tty6     Ss+  18:34   0:00 /sbin/agetty 38400 vc/6 linux
    brandon   2595  0.0  0.7   4340  1784 tty1     S    18:34   0:00 -bash
    brandon   2599  0.0  0.5   4144  1368 tty1     S+   18:34   0:00 /bin/sh /usr/bin/startx
    brandon   2615  0.0  0.2   2508   708 tty1     S+   18:34   0:00 xinit /home/brandon/.xinitrc -- -auth /home/brandon/.serverauth.2599
    root      2616  1.7  5.7  18100 14764 tty7     S<s+ 18:34   0:06 X :0 -auth /home/brandon/.serverauth.2599
    brandon   2647  0.1  2.1   9916  5480 tty1     S    18:34   0:00 fluxbox
    brandon   2654  0.0  0.4   6056  1248 ?        S    18:34   0:00 conky
    brandon   2672  0.0  0.7   4664  1844 ?        Ss   18:34   0:00 aterm +sb -tr -sh 75
    brandon   2673  0.0  0.6   4324  1684 pts/0    Ss   18:34   0:00 bash
    root      2674  0.0  0.3   3344   860 pts/0    S    18:34   0:00 su -
    root      2675  0.0  0.7   4080  1788 pts/0    S    18:34   0:00 -bash
    root      2683  0.0  0.0   1548   232 ?        Ss   18:35   0:00 dhcpcd -d eth1
    brandon   2684  0.0  0.5   4280  1404 ?        Ss   18:35   0:00 /bin/sh /opt/mozilla/bin/firefox
    brandon   2688  0.0  0.5   4280  1408 ?        S    18:35   0:00 /bin/sh /opt/mozilla/lib/firefox-1.5.0.7/run-mozilla.sh /opt/mozilla/lib/firefox
    brandon   2693  3.0 12.1  91752 31000 ?        Sl   18:35   0:10 /opt/mozilla/lib/firefox-1.5.0.7/firefox-bin
    brandon   2700  0.0  0.0      0     0 ?        Z    18:35   0:00 [netstat] <defunct>
    root      2704  0.0  0.3   3352   976 pts/0    R+   18:40   0:00 ps aux
    Here's my list of daemons that should start at bootup:
    Code:
    DAEMONS=(syslog-ng iptables netfs crond alsa privoxy tor)
    Where are those?
    10" Sony Vaio SRX99P 850MHz P3-M 256MB RAM 20GB HD : ArchLinux
    14" Dell Inspiron 1420N 2GHz Core2Duo 2GB RAM 160GB HD : Xubuntu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •