• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to stop automatically running services?

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I have some services running automatically on Ubuntu 7.10 and in my case it is PostgreSQL database.
In general, how to forbid services from running automatically in Ubuntu?
Thanks.
 
Rancher
Posts: 280
VI Editor C++ Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tweak scripts located at /etc/rcn.d

For a service such as postgresql, n = 3.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For Ubuntu, it is most probably Runlevel 2, and /etc/rc2.d/S??postgresql-* .
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The entries in the rc.n directories are aliases (softlinks) to the master scripts. You want to remove both the SnnServicename and the KnnServicename from all the numbered runlevel directories.

In Red Hat/Feodora, there's a magic comment in the initscript that specifies run level information (it's also done in SuSe, but slightly differently). You can turn services on and off via a gui command or via the chkconfig utility, like so:

chkconfig --level 345 postgresql off

Occasionally, Ubuntu adopts Red Hat stuff, so you might want to see if that works.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah yes - there is a helper-tool

with a different version number probably in your case.
 
reply
    Bookmark Topic Watch Topic
  • New Topic