3
votes
3answers
77 views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
0
votes
1answer
19 views

Unexpected interruption in Ubuntu starup file

I got a problem with the upstart files of Ubuntu in /etc/init/. I am trying to run a process if it does not already exist. So I wrote a conf file and start with "start" The following two files are ...
0
votes
2answers
21 views

How do I manage session options (sound in my case) when starting program with xinit?

I have tried but failed to find proper information about xinit, in order to understand why it is that when boot into Unity and then start an application (xbmc) all is well, but when I try to use a ...
1
vote
2answers
201 views

How do I run a script on Unity login/logout?

I have two scripts - one to mount some folders over SSHFS - and one to unmount. I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical ...
2
votes
2answers
324 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
0
votes
3answers
226 views

How to run a Phantomjs server with an upstart script?

I have phantomjs installed and I want to run a phantom server whenever the (Ubuntu) server starts. I am currently working locally on Ubuntu 14.04, and the server this will be deployed to is also ...
0
votes
1answer
80 views

Which arguments are passed to init scripts during shutdown

I am currently looking at the startup and shutdown procedures for ubunut precise pangolin. As far as I understand at shutdown the system switches to runlevel 0 and all scripts with K* are executed ...
1
vote
1answer
178 views

Startup & shutdown scripts for Java servers

I am trying to design a graceful startup/shutdown script (Bash) for a Java app (JAR) that I will be deploying to my Ubuntu 14.04 server. I'm looking for a clean, Linux- and Ubuntu-friendly way of ...
1
vote
1answer
761 views

How to run bash script in upstart conf file?

I made bash script "kvm_manage". How should I write .conf script and run my bash script inside? It is possible? I am beginner..
0
votes
1answer
230 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
0
votes
1answer
264 views

upstart job doesn't stop on “service something stop”

Could you guys please help with with Upstart script ? For some reason it cannot stop java process on service something stop. service status says bbb stop/waiting I'm trying to run my app which is ...
1
vote
1answer
1k views

Running short-term tasks via upstart

OS: Ubuntu 12.04 Task: run script at certain start/stop conditions. No long-running service/daemon is launched, only short-term actions. Upstart script test.conf: description "test script" ...
21
votes
4answers
39k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
0
votes
1answer
132 views

Can I run my script using inputbox to appear my menu-box before login?

I am trying to do experiment with /etc/init. I have written a script which displays a window showing some menu. I don't understand on which event I should start my service. I don't want any desktop ...
3
votes
2answers
837 views

How to create (via installer script) a task that will install my bash script so it runs on DE startup?

I've been reading for the last couple hours about Upstart, .xinitrc, .xsessions, rc.local, /etc/init.d/, /etc/xdg/autostart, @reboot in crontab and so many other things that I'm totally confused! ...
0
votes
1answer
107 views

Hide desktop startup screen

I am working on a hardware device running on Ubuntu. One of the most important features is good presentation - in my case not showing the OS startup screen etc. Currently I am using upstart to start ...
1
vote
1answer
3k views

Upstart job fails to respawn and hangs when tried to stop/restart it

I'm using Upstart 1.5 in Ubuntu 12.04 to manage a process created by some user but needs to be managed as system job as starting on boot, respawning if it fails and we been able to start/stop it at ...
2
votes
1answer
413 views

Where is Unity startup script in rc?.d

I've been reading about runlevels and startup scripts lately, and I've learnt that runlevels 2 to 5 are the same in Ubuntu, and that Ubuntu's default runlevel is 2. What I want to do I want to ...
3
votes
1answer
7k views

Why isn't rc.local executed?

I am PXE booting some Ubuntu machines in a cluster. All of a sudden my rc.local script has stopped working. I've check the permission of /etc/rc.local: -rwxr-xr-x 1 root root 1087 Jan 14 11:04 ...
1
vote
1answer
711 views

How do I delay Upstart's net-device-up signal until a condition is met?

I need to wait for a specific condition to be met a network interface is considered "up". Upstart is sending its net-device-up signal before this condition is met, which cases the scripts that depend ...
0
votes
1answer
915 views

Start command doesn't return for upstart script in Ubuntu?

I have written an upstart script called 'ts.conf' for a daemon and put it in /etc/init. When I try to start it with start ts I expect a confirmation message and I also expect to get the prompt ...
1
vote
1answer
377 views

How to user interact during boot using upstart? [duplicate]

Possible Duplicate: Upstart script: Detect shift key down at boot I want to add a question during boot. The user is supposed to make keyboard inputs and depending on those inputs, there is ...
2
votes
1answer
458 views

Have a parameter applied to service for Upstart

I want to run my webcit service with the -f option, how do I put that in the service script (/etc/init.d/webcit)? The lines that look relevant are: RUNDIR=/var/run/webcit ...
4
votes
4answers
4k views

Upstart script for a transmission-daemon executed as a normal user

I have done a script to start transmission-daemon as a normal user: start on filesystem stop on runlevel [!2345] respawn respawn limit 10 5 pre-start script test -x /usr/bin/transmission-daemon ...
4
votes
1answer
1k views

Starting a service from /etc/event.d works, but not from /etc/init

I'm trying to launch an upstart service on Ubuntu 8.04 from /etc/init/, but I always get start: Unknown job: job. When I try to launch this script from /etc/event.d/ it works fine. Why would this be ...
15
votes
6answers
20k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
7
votes
3answers
3k views

Upstart, one job definition to start and one to stop

Hi i just discoverd ubuntu upstart (etc/init/* scripts). And i would like to use it to run a particular application. This app is run via a command line, but there is an argument to start an instance ...