You are not logged in.
Pages: 1
For example, networkmanager dispatcher launches openntpd when connected to a network. How do i see a list processes such as daemons that were launched through other processes?
I have ALDM installed (arch linux daemon manager) but it only shows daemons that are listed in rc.conf. Hmmm... but i'm guessing i could add openntpd to rc.conf as !openntpd before networkmanager, then let networkmanager start it and that way it'll be visible in ALDM?
Any other way to see daemons?
Last edited by trusktr (2010-09-27 17:21:33)
joe@trusktr.io - joe at true skater dot io.
Offline
'ls /var/run/daemons/' or maybe through e.g. pstree.
Last edited by karol (2010-09-27 17:36:14)
Offline
One way to see running daemons is to list processes with parent pid 1:
ps --ppid=1
Offline
pstree / htop can also be handy.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Oh wow, thanks you guys. that was so helpful. That pstree is especially amazing, but I don't see openntpd listed in it.
init─┬─NetworkManager─┬─dhcpcd
│ └─{NetworkManager}
├─SystemToolsBack
├─6*[agetty]
├─bash───tomboy───3*[{tomboy}]
├─bonobo-activati───{bonobo-activat}
├─chromium─┬─chromium
│ ├─chromium───7*[{chromium}]
│ └─18*[{chromium}]
├─chromium───18*[chromium───{chromium}]
├─clock-applet
├─console-kit-dae───63*[{console-kit-da}]
├─crond
├─2*[dbus-daemon]
├─2*[dbus-launch]
├─deskbar-applet
├─e-addressbook-f
├─fish-applet-2
├─gconfd-2
├─gdm-binary─┬─gdm-simple-slav─┬─Xorg
│ │ ├─gdm-session-wor─┬─gnome-session─┬─compiz───emerald
│ │ │ │ ├─docky─┬─python
│ │ │ │ │ └─6*[{docky}]
│ │ │ │ ├─gdu-notificatio
│ │ │ │ ├─gnome-panel
│ │ │ │ ├─gnome-power-man
│ │ │ │ ├─nautilus
│ │ │ │ ├─nm-applet
│ │ │ │ ├─polkit-gnome-au
│ │ │ │ ├─6*[python]
│ │ │ │ ├─ssh-agent
│ │ │ │ └─{gnome-session}
│ │ │ └─{gdm-session-wo}
│ │ └─{gdm-simple-sla}
│ └─{gdm-binary}
├─gnome-keyring-d───2*[{gnome-keyring-}]
├─gnome-screensav
├─gnome-settings-
├─gnome-terminal─┬─bash───pstree
│ ├─gnome-pty-helpe
│ └─{gnome-terminal}
├─gvfs-fuse-daemo───3*[{gvfs-fuse-daem}]
├─gvfs-gdu-volume
├─gvfsd
├─gvfsd-burn
├─gvfsd-computer
├─gvfsd-metadata
├─gvfsd-trash
├─gweather-applet
├─hald─┬─hald-runner─┬─hald-addon-acpi
│ │ ├─hald-addon-inpu
│ │ ├─hald-addon-rfki
│ │ └─2*[hald-addon-stor]
│ └─{hald}
├─mixer_applet2───{mixer_applet2}
├─multiload-apple
├─notification-ar
├─2*[ntpd]
├─polkit-gnome-au
├─polkitd
├─python
├─stickynotes_app
├─syslog-ng───syslog-ng
├─system-tools-ba
├─udevd───2*[udevd]
├─udisks-daemon─┬─udisks-daemon
│ └─{udisks-daemon}
├─upowerd
├─wnck-applet
└─wpa_supplicant
I do see openntpd in /var/run/daemons though.
joe@trusktr.io - joe at true skater dot io.
Offline
That's probably because OpenNTPD is not a constantly running process. The alsa daemon for instance just restores and saves sound settings after boot and before shutdown - the rest of the time it's inactive and won't be shown as a process either.
no place like /home
github
Offline
ATM I can only provide information from an Server running ubuntu - i think it should be the same in Arch:
/etc/openntpd/ntpd.conf
# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1
After removing the # before 127.0.0.1:
%:/etc/openntpd# netstat -ntplu
...
udp 0 0 127.0.0.1:123 0.0.0.0:* 8177/ntpd
Offline
If your daemon is started the rc.d way and complies to rc.d standards, the following might work for you.
#!/bin/bash
# daemon status
function chk_status(){
target=$1
if [ $target != "functions" ] && [ $target != "functions.d" ]
then
if [ -f "/var/run/daemons/$target" ]
then
stat="\e[1;32m[RUNNING]"
else
stat="\e[1;31m[STOPPED]"
fi
printf "$stat \t\e[1;34m$target\e[0;0m\n"
fi
}
daemons=$(ls /etc/rc.d/)
if [[ $1 != "" ]]
then
chk_status $1
else
for d in $daemons
do
chk_status $d
done | sort
fi
exit 0
- [ My Blog ] | [ AUR Packages ] | [ My deviantART ] | [ screenFetch ] | [ SilverIRC ] -
Offline
@trusktr
actually, you do have it listed: #5
search for ntpd
Offline
Pages: 1