Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3120  / 1 Year ago, tue, april 25, 2023, 9:54:32

This really doesn't make sense. I've been using many other distros and never had such difficulty managing autostart services.



I found three ways of disabling autostart services, and none of them works for me:



update-rc.d -f service_name remove


chkconfig --level 12345 service_name off


sysv-rc-conf


I tried all the three ways to disable mysql daemon, mongo daemon, redis server, cups daemon, yet all of the utilities confirmed that the daemons are disabled, yet they still automatically start on boot.



Please suggest the most correct way to disable services from auto-start at boot. Thank you!



btw, it's running 12.04


More From » 12.04

 Answers
3

Ubuntu has been moving away from sysv-init to Upstart. Some scripts won't work with: (as they have been moved to the Upstart format)



update-rc.d -f service_name remove


chkconfig --level 12345 service_name off


sysv-rc-conf


This has been answered in other posts, best answer I've seen so far is: (if you want more documentation on it)



https://askubuntu.com/a/19324/23779



So in a brief comment:



The current situation is: Ubuntu now uses Upstart. Some services still use the old sysv-init, are located in /etc/init.d/ while other services, Upstart optimized are in /etc/init/. How to disable, stop, start, etc is explained in the above link.


[#37026] Thursday, April 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olouredping

Total Points: 259
Total Questions: 100
Total Answers: 121

Location: New Caledonia
Member since Wed, Sep 15, 2021
3 Years ago
olouredping questions
;