0
votes
2answers
107 views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
0
votes
1answer
28 views

Minecraft Bukkit server spams logfile - Ubuntu 12.04

I have a virtual server (Ubuntu 12.04) and a serious problem with Minecraft/Bukkit. I've installed a fresh bukkit 1.6.4 on my virtual server and made some upstart script for it. Here is the ...
4
votes
1answer
118 views

About dbus-daemon's activation parameter

I'm using Ubuntu12.04 LTS. I saw following line in /etc/init.d/dbus.conf. exec dbus-daemon --system --fork --activation=upstart And I saw the man page for dbus-daemon, and then found the ...
0
votes
1answer
32 views

WOL upstart script won't run upon reboot 12.04.4

I am trying to enable WOL and followed this answer: How can I enable wake-on-lan permanently? As per the link, I created an upstart job to enable WOL upon reboot. Script is: start on started network ...
0
votes
1answer
216 views

Multi-user text mode runlevel in Ubuntu

I use Ubuntu as a server, and I want to change its runlevel to be full multi-user text mode (like init 3 in RedHat). From this command runlevel i see that am running N 2 which is Graphical ...
1
vote
2answers
229 views

How do I configure my Upstart scripts to take dependencies into account?

I have install PostgreSQL, Atlassian JIRA, Stash, Confluence and Crowd on a single Ubuntu 12.04 Server. They are integrated and working per Atlassian documentation. One thing I did notice is that ...
1
vote
1answer
207 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
0
votes
3answers
740 views

/etc/sysctl.conf doesn't persist after reboot

In a mission to reduce frequent memory flushes to filesystem, I added the following two lines to /etc/syctl.conf. vm.dirty_background_ratio = 50 vm.dirty_ratio = 80 I then ran, sudo sysctl -p and ...
1
vote
2answers
179 views

What's the best way to make a Qt executable program run as a service in Ubuntu

I've written my Qt code for an embedded system which is running on Ubuntu. I want to run my program as a service in Ubuntu so I can stop or start it using monit. I've seen some people creating a new ...
3
votes
3answers
1k views

Upstart: Run job after networking has finished starting

I'm trying to start an upstart job after making sure networking interfaces are up. This is what I have now: start on started network-interface INTERFACE=eth0 stop on runlevel [!2345] pre-start ...
0
votes
1answer
615 views

Running a daemon process from upstart

I'm running my application on a VPS under Ubuntu 12.04 LTS. And I have a problem with one daemon process for one of my applications. This process is called "delayed_job" (If not familiar - this is ...
2
votes
2answers
278 views

Upstart instance job on system reboot

I am using upstart instance jobs to start few of my services. The jobs are meant to have one instance per user i.e they take in the user name as the instance parameter. I have also configured them to ...
1
vote
1answer
87 views

MongoDb installation failing

I am following te simple steps to install mongodb: First: apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 Worked Good Second: echo "deb ...
1
vote
1answer
294 views

How to restart python script after one second of going down using UPSTART?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
1
vote
3answers
4k views

upstart job works only with manual start/stop

I have a very small upstart job in /etc/init/tsm.conf to start backup client after network starts. It works just ok if I start/stop it manually via service tsm start|stop|status. But service tsm ...
1
vote
0answers
59 views

Ubuntu 12.04 init won't re-read configuration

I'm running a vnc server under control of init. This is configured using a file under /etc/init. So far, so good. Now I want to make a change to the vnc.conf file, to change some of the command line ...
0
votes
2answers
476 views

12.04 in VirtualBox doesn't execute any custom startup script

I'm trying to use Vagrant for our development process, mostly web development on a LAMP system. On shutdown of the VM I dump the content of the MySQL database to an SQL file in the shared folder. This ...
0
votes
0answers
98 views

Creating an Upstart command for TeamViewer to restart if closed

I am trying to create a .conf file for TeamViewer, to automatically restart it if is closed. Does anyone know how to do this? I am running Ubuntu 12.04
1
vote
2answers
396 views

Upstart - start after task finished

I have an Upstart job configured using the task stanza, which another job depends on being finished before it starts. However, this job must also wait for a different service to be started before it ...
1
vote
1answer
210 views

Can upstart script be triggered by a device attached?

How should I specify the "start on" condition to run an upstart script when a device (an external disk) is attached?
2
votes
1answer
686 views

How are kernel modules in /etc/modules determined (because one of mine fails to load)?

I was trying to setup lm-sensors (Community Guide) and when I get to step 4 (sudo service module-init-tools restart) the service fails to start. In /var/log/upstart/module-init-tools.log I get an ...
2
votes
1answer
32 views

How come service --staus-all outputs a non-existing service?

When I run sudo service --status-all It outputs [ ? ] jetty but there is no such service/process running in the system. How do I cleanup this service/process?
3
votes
0answers
361 views

System won't shutdown unless I stop networking init script [closed]

I speculate it's networking related since I could only shut down my system if I do /etc/init.d/networking stop first. If I tried to put the system to sleep, it disconnect the network then reconnect it ...
2
votes
2answers
5k views

lightdm fail to start automatically after last update

I have 12.04 LTS, I don't think I installed anything extraordinary lately, (just uninstalled lxc-docker), but after last automatic update I am left with console. I can do service lightdm start and ...
0
votes
1answer
358 views

Upstart: report (email, log) on respawn and failure

I would like to get an email when an upstart job fails and respawns, and when all respawns are depleted, and the job fails. How can I do that?
1
vote
1answer
201 views

Am I using upstart correctly?

I'm trying to write a startup script for my Ubuntu 12.04 desktop that pings my Netgear router every 30 seconds (this is necessary as a nasty workaround for a separate problem I'm having). I read this ...
1
vote
1answer
2k views

Problem sourcing variables inside Upstart

I'm trying to use the variables defined in /etc/environment in an upstart script running on 12.04. I'm able to export the variable to the child process but for some reason I not able to use them in ...
1
vote
0answers
214 views

Strange firefox problems when started by xinit

when I start firefox console via: xinit /usr/bin/firefox firefox is not working properly: html select elements does not work (unable to change default value) after opening local pages (I.e. ...
2
votes
3answers
1k views

How can I tell upstart to restart a service when a different service is restarted?

I've an OpenERP server running on one of my servers. It's started by a traditional /etc/init.d/ script. It uses a PostgreSQL database and needs a manual restart every time PostgreSQL is restarted. ...
4
votes
1answer
4k views

How to Debug when upstart hangs?

I have recently much trouble with services started by upstart. Currently I have problems with avahi-daemon and rsyslogd. Most of the time i had that problem on Ubuntu >= 12.04. What's the problem? If ...
9
votes
4answers
4k views

Allow non-sudo group to control Upstart job

I'm trying to set up an Upstart job to run on system startup, and that can also be started/stopped by members of a group other than sudo. With a previous version, I usedupdate-rc.d and scripts stored ...
2
votes
1answer
3k views

Ubuntu 12.04, why service procps start doesn't start procps?

I have been trying to get some settings in /etc/sysctl.conf to take effect upon rebooting. So, I did the following as the root user on this node running Ubuntu 12.04 LTS 64bit # service procps ...
1
vote
1answer
1k views

What is the current state of Ubuntu's transition from init scripts to Upstart?

What is the current state of Ubuntu's transition from init.d scripts to upstart? I was curious, so I compared the contents of /etc/init.d/ to /etc/init/ on one of our development machines, which is ...
4
votes
1answer
1k views

reliably restarting services using upstart or runit

I want to reliably restart my app and web server processes on crash. If I understand correctly, runit starts every service as a child process. If the child process crashes this sends a signal to the ...
1
vote
3answers
298 views

How do I start certain services only when needed?

I have a laptop. I use it for web+email a lot, and then some days for web development. Using it for the latter, I need apache2 and mysql server running, but normally I do not. I'd like a normal boot ...
2
votes
1answer
565 views

How do I correct items that are now upstart jobs but still have an entry in /etc/init.d?

How do I correct items that are now upstart jobs but still have an entry in /etc/init.d? I have an ubuntu 12.04 machine which complains in the boot.log file like: Since the script you are ...
2
votes
3answers
10k views

How does dhclient get called under 12.04

In my 12.04 Precise install, when I boot the system, or when I plug in an ethernet cable, dhclient isn't run automatically on my wired eth0 connection. I have no running dhclient daemon. When I run ...
7
votes
1answer
5k views

user upstart job in ~/.init/ is not found

Running 12.04, I have the following upstart job in ~/.init/: # myjob start on net-device-up stop on [!12345] script echo ">> hello from user script" >> ~/tmp/upstart.log end script ...
3
votes
2answers
1k views

Starting a user-space program as non-root user at boot with upstart

Is there a method to set up an upstart script to execute a user-space program without keeping root privileges, but so the user which has directory/permissions-based ownership of the program can ...
2
votes
1answer
5k views

Why does Upstart need `setgid` when I have `setuid` and the user is a member of the group?

I'm attempting to configure Upstart to run a small utility that needs to access a tty as a system-wide daemon. When run from the command-line, the utility remains in the foreground and doesn't exit ...
0
votes
2answers
5k views

Squid3 fails to start on boot

Squid3 does not start automatically on boot, in some cases. I have start it manually with sudo service squid3 start. Any reason why?
3
votes
5answers
22k views

After Upgrading to 12.04 I can't get to the login screen

I cannot go pass the black screen and the following shows up on my screen after upgrading and rebooting with the Ubuntu update manager from 11.10 to 12.04: ata_id [27]: HDIO_GET_IDENTITY failed for ...