{"id":1745,"date":"2015-03-05T11:10:41","date_gmt":"2015-03-05T19:10:41","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=1745"},"modified":"2015-03-05T11:10:41","modified_gmt":"2015-03-05T19:10:41","slug":"how-many-ways-to-disable-a-auto-start-service-on-ubuntu","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2015\/03\/05\/how-many-ways-to-disable-a-auto-start-service-on-ubuntu\/","title":{"rendered":"How many ways to disable a auto-start service on Ubuntu?"},"content":{"rendered":"

I don’t like or dislike upstart or whatever system service management facility, however, I do hope Ubuntu can give me a single solution to handle system service.<\/p>\n

So to disable a service, you can try System-V style:
\nupdate-rc.d apache2 disable<\/code><\/p>\n

or upstart style:
\necho manual > \/etc\/init\/cron.override<\/code><\/p>\n

or try chkconfig though it’s less common on Ubuntu. Sure, you may want to check \/etc\/rc.local as well for auto-start services that are not system service.<\/p>\n","protected":false},"excerpt":{"rendered":"

I don’t like or dislike upstart or whatever system service management facility, however, I do hope Ubuntu can give me a single solution to handle system service. So to disable a service, you can try System-V style: update-rc.d apache2 disable or upstart style: echo manual > \/etc\/init\/cron.override or try chkconfig though it’s less common on […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[508,509,59,507],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1745"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=1745"}],"version-history":[{"count":1,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1745\/revisions"}],"predecessor-version":[{"id":1746,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1745\/revisions\/1746"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=1745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=1745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=1745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}