If you need to start the service immediately, use the service command as described in Section Do not use the --level option when working with a service that is managed by xinetd , as it is not supported. For example, to enable the rsync service, type:. If the xinetd daemon is running, the service is immediately enabled without having to manually restart the daemon.
Disabling a Service. To disable a service in runlevels 2, 3, 4, and 5, type the following at a shell prompt as root :. For instance, to disable the httpd service in these four runlevels, type:. To disable a service in certain runlevels only, add the --level option followed by numbers from 0 to 6 representing each runlevel in which you do not want the service to run:. For instance, to disable the abrtd in runlevels 2 and 4, type:. The service will be stopped the next time you enter one of these runlevels.
Improve this question. Anthony Mastrean In Ubuntu we use upstart instead of sysvinit as used by redhat. Why is chkconfig no longer available in Ubuntu? I'm voting to close this question as off-topic because it's not about programming. It would have been a better fit for askubuntu. I voted too for closing even when I upvoted the question , but I would rather recommend migration to unix.
Add a comment. Active Oldest Votes. The similar commands are update-rc. Improve this answer. Jerry Jerry 6, 2 2 gold badges 23 23 silver badges 33 33 bronze badges. To list the configuration of a specific service run: "update-rc. So instead of: chkconfig enable apache2 You should look for the service name, and then enable it systemctl status apache2 systemctl enable apache2. Tharanga Abeyseela Tharanga Abeyseela 3, 2 2 gold badges 28 28 silver badges 42 42 bronze badges.
What does the: sysv-rc-conf --list xxxx do? I get the same error with chkconfig as sysv-rc-conf, ie. Its maddening that a well konwn and easy to use tool gets removed, and replaced with something non-standard we have to start over again to learn how to install, and how to use. V H V H 7, 2 2 gold badges 24 24 silver badges 47 47 bronze badges.
Note that I want to know how to run the: chkconfig. Also in case if I run into such a file another time — user Community Bot 1 1 1 silver badge. Claudio Claudio 9, 3 3 gold badges 28 28 silver badges 67 67 bronze badges.
Install this package in Ubuntu : apt install sysv-rc-conf its a substitute for chkconfig cmd. After install run this cmd: sysv-rc-conf --list It'll show all services in all the runlevels. You can also run this: sysv-rc-conf --level runlevel number ex:1 2 3 4 5 6 Now you can choose which service should be active in boot time. By default, the on and off options affect only runlevels 2, 3, 4, and 5, while reset affects all of the runlevels.
The --level option can be used to specify which runlevels are affected. Note that for every service, each runlevel has either a start script or a stop script. When switching runlevels, init will not re-start an already-started service, and will not re-stop a service that is not running. Note that only the on, off, and --list commands are supported for xinetd. Previous Page. Next Page. Previous Page Print Page. Save Close. Dashboard Logout.
0コメント