Starting and Stopping Daemons

Daemons run in the background of your Linux session providing certain functions to your system. There will be occasions where you want to start a new daemon or stop one that is already running. Also if you change the configuration files relating to a particular daemon you will need to restart the daemon for the changes to take effect.

First a disclaimer. The following method doesn't work for all versions of Linux (few Linux commands do) but does work on many of the more common distributions.

To start, stop, or restart a daemon you must first be signed on with root access. The easiest way to get this is to type su at the command prompt. The command that we can use to perform the functions is called service and if it exists on your system it can be found in the sbin directory. The format of the command is to supply the name of the daemon followed by what you want to do (ie. start, stop, or restart). So to restart the samba daemon you just type:

 /sbin/service smb restart

 

This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow
Donate