Linux and Solaris Service Management __linux

Source: Internet
Author: User
System Services

Start and stop of service
In a Linux system, if a service is run from Inittab with the Respawn attribute, the system service will not regenerate Solaris 10, because of the existence of SMF, and the system services that are automatically started by SMF, which are not valid for a simple kill operation, once they are killed or abnormally terminated. You must use the SVCADM command to disable or enable these services. Solaris 10 serves with SMF management.
If you want to modify those services that are managed by inetd, you need to edit the/etc/inet/inetd.conf and then execute the INETCONV command to create the corresponding service entries in the SMF to convert these services to accept SMF management. In Solaris 10, this type of service can be managed through the Svcadm or INETADM command

For example:

# svcadm Restart SSH//reboot SSH service Linux system,
The service is controlled by the xinetd daemon. The configuration of the service is typically stored in several locations/etc/inittab by init control/ETC/RC*.D individual run-level dedicated scripts to start various system services/etc/(x) inetd.conf controlled inetd by/ETC/INIT.D,/etc/ Rc*d are actually linked to various subdirectories in the/ETC/RC.D directory. "System Settings"--> "Server Settings" for several stop-mode GUIs, CLI's # ntsysv # service Service-name Stop|restart #/sbin /chkconfig--level 345 service-name on|off Common service name: network,iptables,httpd,vsftpd ... For example:

       -bash-3.1# Service sshd Restart
        Shutting down SSH daemon                                                Done
        starting SSH daemon                                                           done

  The location of service configurations in Solaris
/etc/inittab is controlled by INIT, but Solaris 10 is not recommended for use with/ETC/RC? D,/etc/init.d/etc/inetd.conf is controlled by inetd, and the Inetadm or SMF is used in Solaris 10 to manage SMF only Solaris 10 uses

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.