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


ADVERTISEMENT

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

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 :: 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 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

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

Ubuntu Servers :: List Of Services Converted To Upstart In 10.04?

Apr 30, 2010

Where can I find a list of services converted to upstart in Ubuntu 10.04? What is the syntax for stopping, starting and restarting these services?

View 6 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 :: 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 Servers :: How To Start VBoxHeadless Using Upstart

Apr 24, 2010

Like the title stated Anyone with experience or suggestion, please do share. I've tinkered all night with this thing. Never get the VBox service I created to start.Here is my final code before I dried my brain.

Code:
# Archayl Server startup
#

[code]....

View 1 Replies View Related

Ubuntu :: Upstart For Start Mythtv-backend Broken In 10.04

May 8, 2010

why upstart is broken in 10.04? The old init of /etc/init.d/mythtv-backend start worked fine in 9.10.

$ start mythtv-backend
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.93" (uid=1000 pid=21758 comm="start) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

View 1 Replies View Related

Ubuntu Servers :: Upstart Unable To Start Mysql On 10.04

May 9, 2010

mysqld not running on boot, I can start it manually with

Code:

sudo -u mysql mysqld

If I attempt to start it with Upstart I get

Code:

dom@mythbox:~$ sudo start mysql
start: Job failed to start

View 1 Replies View Related

Ubuntu :: Upstart Fails To Start A Perl Script?

Jan 22, 2011

On Maverick + up-to-date on updates on Mini ITX (Asus AT3N7A-I) I have a Perl script that I want to run continually to extract values from XML that appears on a USB port every 5 seconds and stuff the extracted values into an RR Database (RRD). I have created an Upstart job, called currentCost.conf (permissions=644 owner=root): #readCurrentCostData4RRD.pl daemon

description "regular background program processing daemon"

start on runlevel [5]
stop on runlevel [!5]
expect fork
respawn
exec perl /home/greg/currentCost/readCurrentCostData4RRD.pl > /tmp/RCCD4RRD.out 2>&1

[Code]...

View 2 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

Server :: Maverick Meerkat And Samba - Upstart Task Won't Start

Nov 17, 2010

now everytime I restart my maveric box I have to

Code:
root@tux:~# start smbd
smbd start/running, process 16067
root@tux:~#

oh and stop firestarter. Ok the firewall issue, is probably simple. I am more concerned that an upstart task won't start. I have checked in boot-up manager, and it is asked to start. This was an upgrade from Lucid, where I hadno problems.

View 7 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

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

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

Ubuntu :: Standard Services Do Not Start At Boot?

Feb 17, 2010

I've been running Ubuntu 9.10 since November '09, and since a month or so I'm having boot problems. Gnome starts, but some core services such as ssh and dnsmasq (that have started on boot somewhere in time), don't start anymore. Neither does rc.local fire, so I basically have to startup these things by hand.

Also, I cannot get into the console anymore by using ctrl+alt+f*, because it gives a message like: Starting ntpd or starting libgcrypt 1.4.4, or something in that fashion.

My belief is that something is holding the boot procedure in a waiting state before services such as ssh get to start, but I can't seem to find anything in the log files.

View 3 Replies View Related

Software ::vmware In Ubuntu 10.04 - Unable To Start Services ?

Sep 30, 2010

I am trying to get vmware to work in ubuntu 10.04(x64) and it just doesn't seem to work. I've made it work in debian(x64) before with the same installer but here I get errors.

installation seems to go fine with the installation script: VMware-Workstation-Full-7.0.0-203739.x86_64

But when I start it for the first time I get the message before you can run VMware, several modules must be compiled and loaded into the running kernel. and then I can press Cancel or _Install (yes with the underscore) when I press _Install it first stops the VMware Services and then says:

compiling:
-virtual machine monitor(successful)
-virtual network devide(error)
-vmware blocking filesystem(successful)
-virtual machine communication interface(error)
-vmci sockets(error)
after that it says:
Unable to start services.

See log file /tmp/vmware-root/setup-29088.log for details.

The log file:

Code:

View 3 Replies View Related

Debian :: Start Services After Installation?

Feb 9, 2011

When installing a package that runs a service why is that service started? Surely, this flies in the face of convention and security.

View 14 Replies View Related

Debian :: Start Services Without Root?

Feb 22, 2010

I've a little Server and wanna start the services (postfix, apache, etc.) without root. My problem is, that I've installed GroupOffice and I allways got errors about permisions in some folder. When I took a look, some of the folder the apache created were from root some from www-data. After some searches in the Internet I've read that only the root user is allowed to start a Service at Ports 1-1024 or something like that...

I've already searched for programs which give the rights to the applications / unlocks them with root for a certain application ... but I've no more idea what words to search for.

Where is that **itt implemented? Is it possible to disable that?

How can I start the services without giving them root privileges?! It's a security issue after all.

View 5 Replies View Related

Ubuntu :: Virtual Network Device - Unable To Start Services

Jun 15, 2010

Just upgraded fro 9.10 to 10.04, and went to start VMware player. It needed to load and compile some modules.

All of them got a nice green tick except the Virtual Network Device

Unable to start services. See log file /tmp/vmware-root/setup-2986.log for details.

I cant access that log file. Set the folder to read only, and any contents, but theres no file in there.

How do I solve this so I can run WMware?

View 3 Replies View Related

Debian :: Delay Mediatomb Services Start

Mar 4, 2015

I have moved from a raspberry pi to an olimex LIME A20. I have managed to get everything working correctly except mediatomb. I have a USB drive attached, I believe that mediatomb is trying to read the drive before it's mounted leaving me with an empty database.

After boot I can create the mediatomb database which works until I reboot the computer. What can I try to delay the mediatomb services start?

View 1 Replies View Related







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