Ubuntu :: Preventing Upstart Jobs From Starting On Startup

May 24, 2010

I'd like to reconfigure vsftpd so that it does not start on boot (and I can enable/disable it using service vsftpd start/stop).

Though I've seen posts in the forums that stated that upstart jobs can be disabled by moving the /etc/init/job.conf file, other sites commented that the original file will be recreated on updates.

The other two suggestions were to alter the upstart script such that either the process starts on never:

Code:
start on (never
and filesystem
and net-device-up IFACE!=lo)
stop on runlevel [!2345]

[Code]....

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Starting Mysqld_safe With Upstart?

Nov 11, 2010

From what I've read, it appears that the respawn stanza in /etc/init/mysql.conf would give me the restart option if the daemon crashes, but I want to make sure other safety features of mysqld_safe are present as well.My /etc/init/mysql.conf is the original. I've tried changing the exec stanza from /usr/sbin/mysqld to /usr/sbin/mysqld_safe but the job fails when I sudo service mysql start.mysql.conf

Code:
# MySQL Service
description "MySQL Server"

[code]....

View 1 Replies View Related

Ubuntu :: Not Automatically Starting Smbd (upstart Event)

Jan 9, 2011

I have posted this somewhere here before and solved it but can't seem to find it. Just waisted 50 minutes googling and checking man pages for upstart. By the way; are man pages written by someone using their tows to type and getting beaten by a stick for every character they type? It seems missing a lot of info. Anyway, I know smbd is started with /etc/init/smbd.conf and there is a line like:

Code: start on local-filesystems Now it needs to be started on? (manually) I can't seem to find any useful information but did seem to find the upstart man pages a hundred times or so (same info same missing parts). I would love to get involved writing documentation for these things if only I know what I was doing.

View 3 Replies View Related

Ubuntu :: Preventing Ssh Service From Starting At Boot?

Sep 22, 2010

Since my desktop (Ubuntu 10.4.1 for now) has no need for anyone trying to ssh into it, I want to prevent ssh from starting as a service when I boot up.

If I type: sudo update-rc.d -f ssh-agent remove

in terminal, will that stop the service for all boots (until I run: sudo update-rc.d ssh-agent defaults -- in terminal)?

I've already removed (unchecked) ssh agent key from my startup applications

View 1 Replies View Related

Software :: Rc.d Jobs Not Starting

Feb 4, 2010

I just reinstalled linux on one of my computers, and now it seems that any scripts in the rc.d folders don't run at boot. I have to go in manually and start them all after I can get to a terminal. I have webmin running on this computer, and no matter what I do, it always says that nothing is supposed to start on boot, even though the scripts are clearly in their respective rc.d folders. What can I do to fix this?

View 1 Replies View Related

Ubuntu :: Starting A Java App On Startup 9.10?

Apr 26, 2010

First of all I'm using Ubuntu 9.10.I have tried using System/Preferences/StartupApplicationsI added:java -Xint -cp /home/Edgar/dist/Edagr.jar:/home/Edgar/dist/Annotator.jar com.ionetrics.edgar.EdgarI don't know if I am calling this incorrectly or not. I know that I can call this from a terminal and it will run correctly.However it will not run at startup. I have added Teamviewer to startup and it runs properly.

View 1 Replies View Related

Ubuntu :: Starting Firestarter At Startup?

Aug 15, 2010

I need to start firestarter at starup, but the application need root credentials, I use "Startup Applications" when I need a program to start upon login, but firestarter need input the su password... how could I get around this?

View 1 Replies View Related

Ubuntu :: Startup Applications Not Starting Up?

Aug 10, 2011

On Ubuntu 10.04, I have been trying to add some Gnome startup applications via the menu system without success. How can I debug/trace this process?

View 6 Replies View Related

Ubuntu :: Disable Pidgin From Starting Up On Startup?

Apr 4, 2010

Pidgin auto starts with the computer, I've closed out of it and killed the process and restarted to make sure it wasn't saving the session, it still starts, theres no option in any of the settings for pidgin to turn it off, is there a way to?

View 3 Replies View Related

Ubuntu Networking :: Stop Wireless Starting At Startup

Apr 5, 2010

Ubuntu 9.10
Acer 7736

This machine has a combined key/indicator light to turn the wireless networking on/off The change of state of the switch is detected by software with the switch off iwconfig shows

[Code]...

View 2 Replies View Related

Ubuntu Networking :: Dhcpd3 Server Not Starting On Startup?

May 31, 2010

I currently got Ubuntu 10.0.4 server edition running on my server. I got 2 network cards in it. One for (eth0) the pppoe connection and the other one (eth1) for dhcp and network.

When i installed dhcpd3 server a couple of days ago, it wouldn't start. So i searched the web and came on the conclusion that i have to do " sudo ifconfig eth1 down sudo ifconfig eth1 up 192.168.0.1"

Problem is i don't have connection with this pc all the time. So if i have to restart it, the dhcp server won't start.

View 1 Replies View Related

Ubuntu :: Startup Services Not Starting (mysql / Apache2)

Feb 20, 2011

I had a hard drive failure and have recovered (rsync) my backup root filesystem onto a new drive. This all seems to be fine, except that at least two services no longer start: mysql and apache2.I can start successfully both through

Code:

sudo /etc/init.d/mysql start
sudo /etc/init.d/apache2 start

although mysql throws a warning about Upstart. Neither start automatically.My system is Ubuntu 10.04.1 LTS x86_64. Part of my reolution actions has involved a kernel update to 2.6.32-27-generic.I have tried to resolve the mysql issue first:

Code:

sudo update-rc.d -f mysql remove
sudo update-rc.d mysql defaults

Code:

sudo apt-get remove --purge mysql-server
sudo apt-get install mysql-server
adding them /etc/init.d/... start commands to /etc/init.d/rc.local script and to a session startup script

checking the services are in rcX.d (using bum and sysv-rc-conf) Ensuring there's a .conf file in /etc/init (which there is).I can't see anything in syslog which would suggest if the system has tried to start these but failed, but then I may be looking in the wrong place. I think they're not starting at all. I wonder if it's something to do with the restore, perhaps symlinks?

View 4 Replies View Related

General :: Starting A Service At Startup?

May 11, 2010

I want to start a service and a script SiteMonitor.sh at startup.

Here is brief working of SiteMonitor.sh(This script monitors the ip addresses of machines which are using http service of the host. This script checks this after every 5 seconds therefore i have run it at background.)

To start with i have modified /etc/rc.local file.

Here is the content of my /etc/rc.local file.

Code:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

[Code]....

View 14 Replies View Related

Software :: Starting A Job At Startup Without Logging In?

Nov 30, 2010

I'm trying to think of the best way to have a job start up on it's own when a system (running CentOS 5) boots up. The job is a simple python script. However, there are some interesting conditions that need to be met:

- As stated, script needs to start and run in the background when the system boots up, but without anyone logging in.

- This script needs to be readable only by root, which means it will need to be run as root

- Only 1 person will have root access, meaning nobody else will have access to see this script or it's status.

The entire point is to have this thing running all the time, even if the system reboots, but to make it so nobody can see the script or view it's source, unless they have root access, which only 1 person will have.

I can think of plenty of ways to have things start up automatically when a system comes up, but they all involve having the user log in as part of it. How can I have a listening python script start up, at boot up, on it's own, without root actually logging in?

View 2 Replies View Related

Software :: Starting A Program On Startup?

Nov 2, 2010

i want to run my program and when it starts up shows an option to say : do you want to start this program at start up? and then if yes copy this program at start up how i can do this?

View 3 Replies View Related

CentOS 5 :: Starting The Firefox On Startup?

Dec 17, 2010

i want to start firefox on startup of my os.so i tried these commands:

ln -s /usr/lib/firefox-3.0.18/firefox /etc/init.d/firefox
ln -s /etc/init.d/firefox /etc/rc5.d/S99firefox

and then i restarted my pc i nothing happened.what should i do ?

View 3 Replies View Related

Debian :: Error On Startup - Starting NFS Common Utilities Failed

Apr 18, 2011

I'm not very sure when this issue started. Anyway, the system finally boots and I haven't had any further problems, but I somehow notice the booting to be a bit slower since this error appeared and I don't like watching the red letters that say "failed" every time I switch the computer on. I googled this before posting it, and other users have had this issue, but the solutions that worked for them didn't work for me.

This is the content of my /etc/network/interfaces file:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback

View 5 Replies View Related

Ubuntu :: Using Upstart Properly With Scripts?

May 3, 2011

I seem to be having some issues. I want to do the following. I want a script to run prior to any GUI starting (so that if it does crash close or whatever it is not effected).I am able to run the script after the system is booted and it works exactly as I want it to. Once the GUI opens I have a window open and maximize with no decoraction via devilspie. This way I have a desktop that can monitor the logs but not interact directly interact with the shell which is actually recording the logs.

The problem is, when I try and use a simple Upstart script to start it the script does not seem to be working. If I do a ps -A it seems to be still running. What it should be doing is recording what the serial input to the log file I am using. In fact... it doesn't seem to be capturing anything. If I try and run the script manually after the computer has booted (with the Upstart script run) to a GUI it crashes the system.The script I am running is simply to record any incoming data from a Serial connection. It sets up the serial port then starts recording.The shell script is as follows:

Code:
#!/bin/bash
stty -F /dev/ttyS0 9600 -crtscts cs8 -parenb -cstopb -clocal ixoff ixon

[code]....

View 4 Replies View Related

Ubuntu :: Upstart Not Unmounting Disks?

Jul 20, 2011

Very frustrated. I have used Unix for ages so I understood the SysV startup stuff. But I have not had a lot of luck with Upstart. The other day I noticed that on every reboot my disks are getting fsck'd. I just recently put an ext2 on /tmp so this takes a while (the ext4 drives just rip through their journals).

The problem is no one is unmounting them on a KDE restart (4.X). I started out looking at /etc/init.d/umountfs and putting some logging in there. It never runs. This is despite that /etc/init has an upstart job that is supposed to run all the runlevel stuff.

I also tried to log some info in /etc/init/mountall-shell.conf which looks like it tries to do a umount -a on shutdown (which is probably not a good idea; you need to unmount in a particular order). That doesn't seem to happen either. I am not even sure how to troubleshoot this further. I suppose I need to see if the reboot( command has the same problem. Or if I shut down kdm first if it goes away.

View 1 Replies View Related

Ubuntu Networking :: Upstart Vs. Multiple IP Addresses ?

Jan 27, 2010

I have run into a problem that I've tracked down to being a conflict between the "Upstart" init system, and how it handles multiple (alias) IP addresses per physical interface. The summary of the problem is that the interfaces are being configured in the background in parallel with the starting of daemons. One "feature" of this (apparently intended for pluggable devices that would add or remove an interface) is that the network daemons are restarted each time an interface is added (and presumably deleted). But this is a disaster when applied to alias IP addresses.

I first saw the effects of this when during booting Ubuntu Server, the screen showed a message about OpenSSH daemon being restarted ... several times a few seconds apart each. At the time I didn't know what was causing that, but didn't worry because it ultimately was running when I needed it.

But now that I am deploying these servers for specific duty with many IP addresses per system (per network interface), the symptoms are becoming serious, and I need a solution.

1. The IP addresses are coming online too slowly. Apparently the time it takes to restart each daemon is being added to each address being configured.

2. It appears to be disrupting some daemons sometimes. Occaisionally, some daemon just ends up being hung somewhere, or dies. Too many restarts.

3. Sometimes few or even no alias addresses get configured. This might be due to a daemon getting hung, and the whole sequence just not finishing.

4. The "nsd" name server as packaged by Ubuntu doesn't deal well with this at all. It needs all its IP addresses to be up when it starts, or else it won't start. The Ubuntu package of it doesn't including any if-up script at all, although I'm not sure that would do any good.

What I need is a way to configure all these alias IP addresses so they are all configured immediately when the point in time is reached to bring up network interfaces for the first time. These are all static, and all are aliases on ethernet NIC cards plugged into PCIe cards, or integrated in the mainboard. None of them are pluggables. I did run a manual test of "ifconfig" in a loop configuring 2540 alias IP address on eth0 and it only took 2 seconds (no if-up triggers or daemon restarts here). So I know it's fast if nothing else is done between these steps.

Even for pluggable physical interfaces, I see no reason to even try to step through every alias (if it has aliases) with a daemon restart. If an alias IP address is added on later, then I can understand doing it. But if you have a list of 100 aliases for a physical interface, they really should all be done ... or at least attempted ... at once, and do any triggers needed after that.

So, how can I configure or modify Ubuntu Server 9.10 to do that?

I have each alias listed in the "/etc/network/interfaces" file with a separate "auto" and "iface" section for each one, with sequential sub-interface numbers appended to the interface name. I tried it without those sections (e.g. just "address" and other items in sequence) and that prevents the system from even coming up (bootable CD to the rescue to undo that). At least cntrl-alt-del did reboot it.

I tried to attach the /etc/network/interfaces file, but I don't know if it worked because I see no confirmations about it. if it didn't attach and you need to see it, say so, and I'll just paste it in a followup.

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

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 Servers :: Apache Upstart Init Script

Jun 2, 2010

Has anyone got a working apache upstart script? I'm running 10.04, and want the nice supervision stuff from upstart to run my apache instance. I've googled (especially for things like replacement-initscripts) but not hit anything concrete.

View 5 Replies View Related

Ubuntu :: Example Upstart Script For Network Service / Daemon?

Jun 16, 2010

I'd like to create a couple of upstart scripts for some network service daemons (eg. usenet downloading service, torrent service, media management services, etc).Basically they should start after the network service is started and the system is running (runlevel 2?) but I'm just wondering if anybody has an example script or more specific start/stop conditions that I can use.

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

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 :: Rsyslog Upstart Script Not Working As Expected?

Mar 13, 2011

Not sure if this is the correct area to ask this question as it pertains to Upstart but not necessarily to Ubuntu.

Anyhoo, I have made a small alteration (obviously the cause of error ) but not really sure why it does not work.

rsyslog.conf:
Code:
# rsyslog - system logging daemon
#
# rsyslog is an enhanced multi-threaded replacement for the traditional
# syslog daemon, logging messages from applications

[Code].....

View 3 Replies View Related







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