Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  38] [ 0]  / answers: 1 / hits: 476180  / 3 Years ago, sun, september 19, 2021, 3:39:05

Possible Duplicate:

What’s the recommended way to enable / disable services?






Are there any other command to start stop restart service in ubuntu other than the below following.




  1. service --status-all

  2. service <service name> stop

  3. sudosysv-rc-conf


More From » services

 Answers
7

It depends largely on the service. The new and preferred way to stop start and restart services is through /etc/init.d. So, for example, to stop or start the Apache Webserver, you can run



/etc/init.d/apache2 stop



/etc/init.d/apache2 start



The same is true of many other services, but probably not all. You can use the utility sysv-rc-conf to see which services you have that use an init.d script and manage them that way as well. Run it with sudo sysv-rc-conf.



If you're looking for a GUI application, try Boot up Manager. Install with



apt-get install bum



and run from the UI or from a terminal with



sudo bum



Usage and documentation can be found here.


[#43747] Monday, September 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
losbu

Total Points: 71
Total Questions: 124
Total Answers: 106

Location: Honduras
Member since Sat, Jul 24, 2021
3 Years ago
losbu questions
Mon, Jan 31, 22, 21:41, 2 Years ago
Tue, Nov 22, 22, 01:27, 1 Year ago
Wed, Jan 25, 23, 00:28, 1 Year ago
Wed, May 11, 22, 08:41, 2 Years ago
;