General :: Command That Will List All Running Services?
Apr 2, 2011
i know that there is already a command for it but it comes out with a lot of letters that makes it hard to find the services that are runningi'm talking about services like DNS, APACHE, DHCP, SAMBA, SSH etcis there a command that will list these services and related services that are running instead of showing a bunch of jumbled and lettered mess thats hard to comprehend
I have a script from which i want to disable unwanted services. I wanted to have the list of unwanted services in the same script file. I tried the following, but it is not working...How do I mention list of services in the same file and still make the script work ?
Code: #/bin/bash #List of services, modify list between SERVICES tag service_list=$(cat <<SERVICES acpid apmd avahi-daemon
I have installed release CentOS 5.5 w/ fetchmail services. I've already configured the /.fetchmailrc in the correct format that I've learned from topics and I've checked also the sedmail running status. When I invoke the #fetchmail command this often happens:
fetchmail: WARNING: : Running as root is discouraged. 2 messages for user1 at mx.mailserver.com.ca: (1 of 2) (4353 octets) .....flushed
I have configured two NIC 's One for the public IP and another for the local network, I've tried to use the two IP's in the POP3 and SMTP settings of Mozilla Thunderbird but still user1 can't get messages.
In my server the iptables and ip6tables services are not running. But still i am getting some iptables and ip6tables related alerts on my /var/log/messages. My technical leader told me that there might be some mis-configuration in iptables configuration file. But i didnt see anything wrong.
Quote:
Quote:
What does it mean "Jan 25 11:01:32 beteduibsrv3 avahi-daemon[3308]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::226:b9ff:fefc:6ec4."
I am looking for a command line utility like ping that can use for checking appropriate services on a server . I do not want do any port scan . I just want to use it for checking apache , mail,ftp and other services on a server if they are running or down.
I'm trying to find the systemctl equivalent of "chkconfig --list".$ systemctl -t service -alooks like the command, but it does not return any line about the ntp service. It does exist because I get this:
$ systemctl status ntpd.service ntpd.service - Network Time Service Loaded: loaded (/lib/systemd/system/ntpd.service)
I spent a few minutes googling this, but I am not even sure what to search for. I suspect I'm looking at part of upstart, but it could also be sysvinit, plymouth or something else entirely. Every time I reboot, just between plymouth's splash screen and gdm loading, I am shown a list of services starting. The list shows the names of the services and [OK] if they started sucessfully or [fail] if they did not (only apport ever fails and only occasionally). I don't need or want to see this list. It also interrupts the transition from Grub to GDM (the background color should be the same shade of purple from grub all they way to the desktop, but this list is presented as ordinary terminal output: white text on black background)
In short our required is that we are creating a share library which can be loaded by a process and that share library analysis the process which load it. Since share library is in address space of the process so I need to find out how many threads created by the process and what is status of their stack trace etc.
So I am looking for a way to get list of threads in running process.
how to list the currently running processes via code a shell script. FYI i now about the top method in the terminal but i need a way to have it via a shell script.
After upgrade of 11.1 to 11.2 I noticed that none of services that was started in 11.1 at boot are starting now in 11.2. I check run-level of services with
Code:
chkconfig --list
When I start services manually everything is OK, but on restart they do not starting. Another weired thing is that my SuSEfirewall2 is filtering everything on input, nevertheless my previous configuration is still there, but ports are closed.
I am trying to run two different copies of vsFTPd service in the same server, one for IPv4 and the other one for IPv6. Because as I know that you cant run one vsFTPd server for IPv4 and IPv6 in the same time.
Should I have hal and/or dbus services running when my system doesn't have GUI? For example, in case of a mail/web server where I have console applications only on it.
I'd like to run a Tor relay, but am trying to understand the security implications. For some time I've run my torrent client in a VirtualBox virtual machine, which is run as a very non-prived user, bridges directly to The Internets, and writes to one directory on the host. My belief is this is about as secure as it can be, but am open to suggestion.If I run a relay in the VM it wouldn't be associated with my use of Tor as a client, which is fine since there is no technical need for them to be connected and it's desirable for security.I read that chroot jails can be broken, particularly when run as root, so I don't really trust that. Also studied a vserver, but it must share the network setup which doesn't strike me as isolated enough.
So I was wondering, if I capture this output into a file (ie. one file per line), can anyone help me write a command which iterates through the file and moves the files one by one to a specified directory?
I am baffled by fedora's feeble attempts to work with Samba. I have ran various versions of Fedora for the last few years, and sporadically, the Samba gui and samba itself have had such problems. My current problem in Fedora 11 (64bit) is that samba doesn't seem to be running correctly. It is allowing the hosting of shares, but it does not show that it is running in the services gui. It shows enabled, but when I attempt to change it by starting or stopping, nothing happens. The samba gui also shows that it launches but then never actually starts. I saw very similar problems with Fedora 9.
Last time I installed the ATI graphics driver on my PC, it was'nt working fine so I uninstalled that driver. I restarted the PC after uninstalling the driver but then, when PC boots and start running the services the screen just hangs and I don't get into the desktop.
I tried to run the xfs service using service xfs restart and also gdm service using service gdm restart, but in both the cases it shows that Unrecognized Service. So, I think it means that the package for xfs and gdm service is not available in my PC. Is that so?
I tried to get into the desktop by running startx but it gave the following error :-
Fatal Server Error: no screen found
consult the fedora project support at [URL] for help.
check the log file at "/var/log/Xorg.0.log" for additional information.
giving up
xinit: connection refused (errno 111): unable to connect to X server xinit: no such process (errno 3): server error.
I have a little bit of a problem, I run openSUSE as a server on a Dell PowerEdge T610. I use it for sharing files in a local network and as a web server accessible through the public IP (configured through router DMZ). Also, I use Teamviewer for remote control in order to avoid some compatibility and network problems. Generally the computer runs flawless but from time to time, as about once in two weeks, all network related services except the Apache server which runs just fine, and is still accesible, crash. The Samba share can't be accessed anymore, the Teamviewer is also dead and the only way to put everything back in order is a restart. The thing is I don't know if an error occurs since the server hasn't got a monitor installed, and more than that I do most of my work remotely (as in miles and miles away from the location) and it takes me quite some time to actually get there and see what's happening.
So, any ideas what might be happening? I belive that there might be some information in some of the logs, but as I am not an expert in Unix like operating systems I don't exactly know where to start from.
I downloaded the latest 10.4 server CD with the intention of running a small Ubuntu Enterprise Cloud. I am following the directions here: [URL] Ive got 2 laptops that are capable of the tasks assigned to them. Both have dual core Intel chips that are VT enabled, 4GB of RAM, 250GB hard drives. Ill use one ( "server" ) as the front end server running cc, clc, walrus and sc.The other one ( "node1" ) will be the only node controller on my little network. Ive also got another laptop as a client, running euca commands to make instances and what not.These three laptops are connected to a switch. server is 192.168.1.100, node1 is going to be 192.168.1.110, the client laptop is 192.168.1.120.
the server seems to install fine, I select Install Ubuntu Enterprise Cloud, use it as the Cluster, give the cluster a name and 10 IPs to assign, 192.168.1.150-192.168.1.160 After the server is done installing and reboots, I boot the node machine off the CD and again select Ubuntu Enterprise Cloud. It's at this point the install craps out, because it does not recognize a cloud computer on the network.
Indeed, as I go to the server I run
Code:
ps -aux | grep euca
and see nothing running. So I start the eucalyptus service, and run
Code:
sudo euca_conf --list-clusters
and nothing shows up. Ive done some googling, ran some more euca_conf commands, registering the cluster, enabling walrus, cloud and sc. I can access the web gui on the client laptop, then restart the node install on the node laptop. This time it does see the server as a cluster controller, but when it tries to fetch the preseed file, it seems to not know the cluster's IP, as the red box that complains about the lack of a preseed file lists the URL as [URL] ( or whatever the file is called, I dont have the error in front of me. )
With file command we can get the file type. File returns a unique answer for each file type. I want to get the total list that file can return for linux & solaris. For example, I have a partial list of file's return output. Unfortunately I can't see the total list from manual page.
ASCII C program text ASCII C++ program text ASCII C program text, with CRLF ASCII C program text, with very ASCII English text ASCII English text, with CRLF line