Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I believe man signal will give you more info, but here's what I use:
ps aux | grep programname
So:
ps aux | grep ftp
Would give me info about where proftpd is running, then I'd note the pid and:
kill -15 1234
Where 1234 is the pid.
A 15 signal tells the application to finish up and close. It's clean. If your application doesn't respond to that, you can kill -9 it instead.
A 9 signal tells it to stop right now and close, actually I think it might even happen further up the chain of events, such as get killed from it's source rather than the application itself. It's much worse for the application, and should only be used when 15 (or others) aren't working.
I hope I've got those correct, see man signal for more info
I use HUP when I need to restart inetd, such is the case if I use proftpd in inetd mode rather than standalone.
A HUP signal stands for (IIRC) Hang UP; it means:
After you finish what you are doing, simply restart your process, re-read your configuration file, and move on as if nothing happened.
Originally posted by davee
Another thing to look at - do a:
/sbin/chkconfig --list | more
to see all services that start automatically. See man chkconfig for more options.
Dave
Also, if you don't want to run the daemons to start automatically chkconfig is your friend. As Dave suggested run man chkconfig. You can use it to control what daemons start and what run level they start at.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.