Results 1 to 5 of 5
Thread: How to see running daemons?
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
10-24-2006 #1
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:
Any ideas why this is happening?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]
10" Sony Vaio SRX99P 850MHz P3-M 256MB RAM 20GB HD : ArchLinux
14" Dell Inspiron 1420N 2GHz Core2Duo 2GB RAM 160GB HD : Xubuntu
-
10-24-2006 #2
I'm sure not an Arch Linux guy, but this
is probably a good clue.Code:/etc/rc.conf: line 67: unexpected EOF while looking for matching `"'
Any name/value pair in /etc/rc.conf where you forgot a quote (")?
-
10-24-2006 #3Linux Enthusiast
- Join Date
- Dec 2004
- Posts
- 638
To list running daemons type the following in a terminal:
ps aux
-
10-24-2006 #4
I think found the first error - I had
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.Code:eth2="dhcp'
As for the other line - how should the file end properly? Then end used to look like this:
And I would get the EOF error for 'line 91'Code:#End of file
So I did this:
And now I get the EOF error for 'line 95'Code:#End of file # # # #
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
-
10-24-2006 #5
As for viewing running daemons - I can't quite understand the ps aux output:
Here's my list of daemons that should start at bootup: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
Where are those?Code:DAEMONS=(syslog-ng iptables netfs crond alsa privoxy tor)
10" Sony Vaio SRX99P 850MHz P3-M 256MB RAM 20GB HD : ArchLinux
14" Dell Inspiron 1420N 2GHz Core2Duo 2GB RAM 160GB HD : Xubuntu


