|
chkconfig ntsysv Example Implementation |
| Home | Peer to Peer | CompTIA N+ | CCNA | MCSE | MCITP | RHCE | Interview | Tips n Tricks |
Linux service managements tools chkconfig ntsysv Example ImplementationServices can be controlled by three programs in linux.
It's generally fastest way to control services at the command line. The chkconfig command gives you a simple way to maintain different runlevels within the /etc/rc.d directory structure. With chkconfig, you can add, remove, and change services; list startup information; and check the state of a particular service. The chkconfig command can be used to configure runlevels and list the current runlevel configuration. It must be run as root if modifying a runlevel. Otherwise commands such as listing whether a service is started at boot time can be run as a non-root user.
To Know about all available switches with chkconfig commands use --help options
To check the status of all services on all runlevel use --list switch with |more options
To check the status of all services on runlevel one use --list switch with |more options
To check the status of only vsftpd services on all runlevel one use --list switch with service name
To on off vsftpd service on runlevel use on off switch
To deleted vsftpd service use del switch ( Note that only service will be delete, not rpm you can add this service again without installing rpm again )
To add service use add switch ( Note rpm must be install first ) The Text Console Service Configuration ToolIf you're managing a large number of services, the command line can be less efficient. You don't need a GUI, just the ntsysv tool, which you can open with the command of the same name. However, it affects only services in the current runlevel unless you add an appropriate switch. For example, if you want to activate several services in runlevels 3 and 5, start ntsysv with the following command: # ntsysv --level 35
|
|||||||||||||||||||||
|
|
|
|