Ubuntu :: 10.04 Correct Way To Start Stop Disable Services?

Aug 25, 2010

With the advent of Ubuntu 10.04 Lucid Lynx LTS People are migrating servers to the latest LTS. One fundamental thing that has changed is the move to Upstart. In the old days to stop multidaemon service such as Samba, one would simply type /etc/init.d/samba stop and to disable it from starting on boot one would simply type update-rcd samba disable.

Now its the year 2010 and in 10.04 it seems on has to edit a bunch of files, etc. Is there not an easy tool to correctly and properly disable services on startup in 10.04 consistently? in Redhat/Mandrake 10 years ago it was simply

Code:
service smb off
In Ubuntu 10.04 its
1) edit /etc/init/smbd.conf and modify the line that says
Code:
stop on runlevel [!2345]
and change it to

[Code]...

And one has to remember all these changes when the get ready to enable the samba service in the future? This can't be right.I know I must be missing something here. or maybe overlooked something in the upstart documentation.Which seems quite sparse by the way. So the question remains. How does one simply disable a multidaemon service starting on boot such as samba. Any tool to do this ? Is the above the correct method recommended by Canonical to disable services? and enable them?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Can't Find App To Stop And Start Services

Jun 27, 2010

I thought it was in the System>administration menu somewhere, but I just can't see it. What is it called, and where do I find it please?

View 9 Replies View Related

Ubuntu :: Method To Start / Stop Services Under Upstart

Jan 22, 2011

I installed MySQL and Apache2 to develop & test out the site I'm writing. However since I'll be using them purely for internal use (not exposed to the Net), I don't want them to start with every boot-up, but would like to start them manually when I desire, and stop them after use.With previous Ubuntu (Jaunty) I'd used chkconfig to configure services, but since the current version (Maverick) uses Upstart, is chkconfig still applicable?

I also installed 'bum' (Boot-Up Manager), but strangely, it displays the MySQL server as "unchecked" even though it's running (and starts at boot-up), so I cant see how I can prevent it from starting at boot-up through bum. chkconfig also displays MySQL as not active at runlevel 5, when in fact, it is.

I'd like to know what's the recommended (official) way to configure boot-up services with the Upstart system? I don't suppose directly editing the *.conf files in /etc/init is the best (or even correct) way?

View 3 Replies View Related

Red Hat / Fedora :: Services Start Then Stop After Few Minutes

May 7, 2009

I have several services set to start in init 3 on a cloud provider. The init scripts appear to be in the correct folder but the services are never started after a reboot. I finally watched the console and all the services start correctly then shutdown after a few moments.

View 9 Replies View Related

Fedora Security :: User Access To Start And Stop Tomcat But Also Gives User Access To Start And Stop Other Services "/etc/sudoers"

Mar 13, 2009

I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....

View 2 Replies View Related

Red Hat / Fedora :: Restart / Start / Stop All Services At The Same Time Without Rebooting?

Jan 7, 2010

is it possible to restart /start/stop all services at the same time without rebooting?

View 3 Replies View Related

Debian Configuration :: Configure (start/stop/restart) Services (especially Apache2, MySQL And PHP) Using A Graphical Or Cli Tool?

Jul 23, 2010

I'm using debian 5 x64 with xfce.Is there a way to configure (start/stop/restart) services (especially Apache2, mySQL and PHP) using a graphical or cli tool? I tried to use sysv-rc, sysv-rc-conf, rcconf and rc-conf in the terminal but Bash didn't find them (Although Synaptic show that sysv-rc is installed).

View 9 Replies View Related

Ubuntu :: Stop Services Without Sudo?

Sep 12, 2010

I am working on a notebook which has both gnome and wmii. I am trying to find a way to script stopping various services when booting into wmii however the "service xxx stop" requires sudo..Is there a way to allow a user to manage services without the need for sudo (aside from password-less sudo)? I assume there are permissions complications with writing the PIDs, etc. Is there a 'simple' solution? Even possible passwordless sudo just for the 'service' command?

View 2 Replies View Related

Ubuntu Networking :: Stop & Restart Wireless Services

Apr 1, 2010

Xubuntu 9.10 on a DELL Inspiron 1150.I have a problem with intermittent dropping of my wireless connection ( see Belkin 7010 thread).Once dropped, the wireless will NOT reconnect (It just sits there saying "connecting" but never does) Same happens if I manually disconnect - I can never re-connect. On rebooting it will reconnect fine & all is well for sometimes 4 hrs.How can I kill all wireless services & restart them without having to reboot the laptop?

View 3 Replies View Related

CentOS 5 :: PC / Desktop What Services To Stop And Uncheck?

Jul 29, 2009

Just installed 5.3/gnome.I am on pc/desktop with only wired internet connection via routerto dsl-modem. The OS sets-up the "eth0" automatically.For just this type of setup what services can I disable and uncheck ? In System>Admin.>Services I unchecked and disabled bluetooth,isdn,pcscd and sshd. Should I disable sendmail, avahi-daemon, portmap,rpcidmapd,rpcgssd and.apmd(no laptop)? Goal is to minimize unneeded services and improve security. The wiki article on securing CentOS did not cover this.Under System>Security Level Configuration I allow ftp,Mail(smtp), and WWW(HTTP). Is the ftp allowed ok for my pc/desktop?

View 3 Replies View Related

Ubuntu :: Stop Upstart Services From Staring At Boot Time?

Sep 18, 2010

What is the correct way to stop upstart services from staring at boot time ? I'm doing something like this example in /etc/init/mysql.conf:

Code:
#start on (net-device-up
# and local-filesystems
# and runlevel [2345])
start on runlevel [!0123456] # I ADDED THIS LINE (and commented the above ones)
stop on runlevel [016]

1. Is this the correct way ?

2. Is there no way of doing something like we do with update-rc.d -f apache2 remove ?

3. When will ubuntu ship a gui to add or remove services from boot ?

View 1 Replies View Related

General :: How To Disable Services

Oct 3, 2010

I would like to know how would i disable service which helps mounting of removable devices automatically?I dont want to disable mounting but i would like to disable automatic mounting of devices.I would like to do this as security major on one of our production server.

View 9 Replies View Related

Ubuntu Multimedia :: How To Disable Acpi Services

Apr 27, 2010

I need to disable acpi services in order to get fglrx working on my toshiba satelite a300.
I've already tried this:Quote:

sudo aticonfig --initial -f
sudo aticonfig --acpi-services=off

But the acpi services still loaded when i booted the computer. How can i really turn them off?

View 1 Replies View Related

Ubuntu :: [Lucid] Disable Services In Upstart?

Jun 27, 2010

I recently discovered upstart is launching sshd on my machine even though I disabled it with `sudo update-rc.d -f ssh remove`. I tried to find a way to prevent upstart from launching ssh by default, but the best I can think of is removing /etc/init/ssh.conf (I just uninstalled openssh-server).I'd like to disable it without doing this, though. This would make it easier to enable sshd when I need it

View 8 Replies View Related

Red Hat / Fedora :: Unable To Stop Oracle Database Services

May 23, 2009

Currently using oracle 9i with 3 database(maindb,arist,samp) in redhat 5.3 server .I want to stop 2 database "maindb" and "samp" manually ( in XP or Vista we can stop service oraclemaindb and oraclesamp ), but in redhat i dont know how to stop services and how to see currently running oracle services.

View 1 Replies View Related

Software :: How To Stop Services Printing Messages To Terminal

Jan 6, 2011

Every now and then on my non-graphical console-orientated Debian Squeeze system, some services see it fit to spill their juices all over what I am doing.

A message about a service stopping/starting/restarting prints at the location of my cursor ontop of whatever I was doing at that moment, forcing me to either redraw ( if the currently running application supports it ), background and then foreground what I'm doing or clear the screen if at the shell.

Code:
* Restarting OpenBSD Secure Shell server sshd
* Restarting advanced system logger rsyslogd
How can I stop these messages appearing? Even better would be to send them to /dev/tty8 where I've configured rsyslogd to write.

View 2 Replies View Related

Fedora :: Disable Unneccersary Services?

Dec 5, 2009

to disbale some unnersercary services in fedora 11.i have bluetooth and ssh disablesdwhat services van i also disable?is there somewhere an howto for it?

View 2 Replies View Related

Ubuntu :: Lucid Canonical Method To Disable Services?

Jul 19, 2010

Until Karmic Koala I could enable/disable services at startup (such as ssh or mysql) by issuing a update-rc.d -f someservice remove. On reboot, it would no longer run, and I could re-enable if necessary by, for example, running a update-rc.d someservice default.

However, it seems that now in Lucid Lynx this no longer works. For example, if I do a nmap localhost I can see that the ports for the respective services are open, therefore I assume they are likely running (which an attempted access confirms). For example, if I do a /etc/init.d/ssh stop, the ssh service is respawned. I've found that service ssh stop or initctl stop ssh effectively stops the service (i.e. it is no longer "respawned" if "killed"). But so far I haven't found documentation that conclusively indicates how to disable the service start on (re)boot.

So I ask you, what is now the currently "canonical" or "standard" way to enable/disable these services (particularly ones such as ssh or mysql) from starting on boot on Ubuntu? I'd like to avoid having to remove the respective packages if possible (as some posts suggest), since in some occasions I'm interested in manually running those services -- therefore, having to install/uninstall packages is impractical.

View 1 Replies View Related

Ubuntu Networking :: Services To Disable To Boost Performance?

Oct 15, 2010

I installed Ubuntu 10.10 today Netbook Edition on the Asus Eee PC 1015PED. Specifications for Asus Eee PC 1015PED: Atom 455, 1.66 GHz, 1Gb ram, 250Gb drive, Bluetooth 3.0, 0.3 megapixel webcam, Gigabit Ethernet, WSVGA (1024x600), sound card compatible with the HD audio connector, d-dub, three USB 2.0 ports, 6-cell - lithium Ion - 4400mAh, WiFi 802.11 b/g/n.

solve the problem or an indication of the package to install. tutorial under the title, which services to disable to boost performance. first place to help you connect to the Internet. especially to the netbook'a - Asus Eee PC 1015PED. I updated everything on connection via cable. Detects the connection, but when it connects after a while.. "Wireless - Network Disconnected".

[Code]...

View 9 Replies View Related

Debian :: Way To Enable/disable Services In Squeeze?

Jul 2, 2011

I'm looking for some definitive instruction on the proper way to enable/disable (not to simply start/stop or add/remove packages) services/daemons under Debian 6. Google results are all over the map and, surprisingly, the Debian wiki has no abstract on services.It seems like such a common task

View 14 Replies View Related

Debian Configuration :: Disable Boot Services

Jan 31, 2010

I'm running debian unstable and since there was the switch to dependency based boot I can no longer control my boot services.I used to suppress the services that I use rarely during boot with: sudo update-rc.d -f myservice remove This arranged the links in /etc/rc?.d and everything worked.

Now this command only says: update-rc.d: using dependency based boot sequencing.This seems to work until I upgrade the service to a new version and it is enabled again.Do you have any idea of how to disable boot services permanently with the new system?

View 4 Replies View Related

General :: Disable Unnecessary Startup Services?

Dec 15, 2010

In order to preserve resources and to have more secure machine I want to disable services which are of no use to me. But being relatively new to Linux I want to make sure I'm disabling those really unnecessary and that my actions wont have a negative impact on overall system health / usability.code...

View 13 Replies View Related

Server :: Disable Unwanted Services In Other Than Squid?

Mar 5, 2011

I have installed squid using CentOS 5.When the server boot there are default services which are enabled at Boot time. My server is dedicated only for squid proxy server.I want to know how that when my server boot only the relevant services should start which may helpful for squid. Remaining unwanted services should be disable because they are just occupying memory of the server. Kindly guide me which command I should use and which services may I disable for smooth functioning of my squid

View 1 Replies View Related

Ubuntu :: Stop Hiding Boot Menu - Correct Entry In 40_custom

May 9, 2010

I am running ubuntu 10.4 only .

I assume to make the boot menu appear I have to add an entry into 40_custom file. Not quiet sure how to make that entry, or if it has to be positioned a certain way.

View 8 Replies View Related

CentOS 5 Server :: Disable Unwanted Services In Other Than Squid?

Mar 5, 2011

I have installed squid using CentOS 5. The server is dedicated only for squid proxy server. I want to know how can I disable unwanted services which load at booting time. Like sendmail,samba,etc etc. These services take memory and are not in use. I does not know how can I make my server only for squid proxy service by removing unwanted services?

View 1 Replies View Related

General :: See System Services Are Enable - Disable In Ubuntu 11.04(Natty Narwhal)?

Aug 5, 2011

Chkconfig is a utility to update and query runlevel information for system services. Chkconfig manipulates the numerous symbolic links in /etc/init.d/, to relieve system administrators of some of the drudgery of manually editing the symbolic links.

In Debian, there are several tools with similar functionality, but users coming from other Linux distributions will find the tools in this package more familiar.

Go to Terminal and open it and type the command "chkconfig' press enter. code...

after installing just type "chkconfig"
you can see list of service which one is off or on in your system code...

View 1 Replies View Related

Fedora :: Enable And Disable These Services: FTP,Email,Web Server,Firewall,Telnet,LAN?

Sep 12, 2009

how to enable and disable these services: FTP,Email,Web server,Firewall,Telnet,LAN? Is there any general way to manage services?

View 1 Replies View Related

Ubuntu :: None Of The Services Start?

Feb 9, 2010

I am running ubuntu 9.10 with the latest patches and all the prerelase patches. At some point and i am not sure when something broke and none off the services start during the boot. Also the virtual consoles do not start. The only services that start are the one that are controlled by the gnome session. In addition i cannot start the rescue mode. It stops loading at same point where the console should show up. I am guessing that the problem is related to the upstart but i am not sure. I never ever had problems with boot in linux and this is very frustrating. I feel like i am running windows and dont know how to troubleshoot. I cannot see anything in the log that would give me a hint? I dont know where too look. I tried to activate the bootlogd but it does not work. Probably beacause the services dont start correctly. Something broke and one of the updates must changed something but i dont know what and where? Anyone can recommend where to look? How do i see the interactive boot? I tried remove the splash and quiet from grub config but i could not see anything there. I got too fast to the x login.

View 9 Replies View Related

General :: Start Script Bash When System Start Stop Reeboot?

Dec 10, 2009

I have 3 script BASH. I want start this script when the system start,stop and reeboot.

View 4 Replies View Related

Ubuntu Installation :: Several Services Don't Start At Boot?

Jan 29, 2010

I'm having some strange problems in my system (Ubuntu 9.10 32 bits). Several services (Cups, MySQL, VirtualBox kernel driver, etc) aren't starting during boot time. It's possible start them manually (e.g. /etc/init.d/cups start). The other problem is that my virtual terminals (ctrl + alt + f[1-6]) aren't starting with the system too

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved