in UNIX-like operating systems, processes, implementing service functions and do not have a user interface, called demons .The demons realized a large number of service software (scheduler subsystem logging, database servers, etc.).Sometimes one or the other daemon must be restarted.
- - access to the target machine (physical or remote);
- - credentials root.
Log on to the target machine with credentials as root.If you have physical access to the computer and work in a graphical environment (KDE, Gnome, etc.) run a terminal emulator, such as XTerm, or Konsole.You can also switch to a text console by pressing the key combination Ctrl + Alt + Fx, where x - number of the console.If the input is already made under a user other than root, the command su.If the machine has access SSH, use a suitable program to connect.In UNIX-like systems are usually installed console client ssh.When working under Windows you can use the program PuTTY, a freely available online putty.nl.Enter th
e credentials root and start a session.
Know the name init-script, the corresponding daemon, which must be restarted.Usually, all these scripts are in /etc/rc.d/init.d directory and have the same names as the demons they serve.Look at the contents of this directory using the File Manager or the command ls.If you know the approximate name of the demon, filter the output from ls utility grep.For example, ls -1 /etc/rc.d/init.d | grep log
Learn about the current state of restartable demon.Run the form: service & lt; daemon_name & gt;statusZdes instead marker & lt; daemon_name & gt;Use the name obtained in the previous step.If you receive a line of the form & lt; daemon_name & gt;is running, the daemon is running and can be restarted.Otherwise it is not possible (this demon does not exist or it is stopped).
Restart demon.Run the form: service & lt; daemon_name & gt;& lt; command & gt; value & lt; daemon_name & gt;similarly to what was described in the third step.The parameter & lt; command & gt;Use one of the well-known identifiers teams demon, leading to restart (usually described in the documentation supplied with the appropriate package) or option --full-restart.For example: service syslogd restartservice httpd2 gracefulservice syslogd --full-restart
Complete current session.Enter the command exit.Press Enter.To complete the work on a text console on or off from the SSH server can also use the command logout.