Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

learn more… | top users | synonyms

0
votes
0answers
9 views

Is it possible to define an upstart command?

I'm looking at creating an upstart job with some unusual commands. Is it possible to write the upstart script in such a way that I can do something like this: service myupstartjob mycommand I've ...
0
votes
1answer
18 views

Service initialization scripts: upstart?

Where can I read some brief information about upstart in ubuntu? I found "Upstart Intro, Cookbook and Best Practises", but it's too big. How can I add my own service? What's the difference between ...
1
vote
1answer
28 views

Shutdown Ubuntu using upstart

I have a process which is started by Upstart. It will try to respwan the process n number of times on failure and after that if it fails, I want to restart my Ubuntu. I tried telinit, halt etc in ...
1
vote
1answer
29 views

Ubuntu 14.04 Server , launch jar in screen on boot/restart

Ive been reading everywhere on how to do this, and I understand how to do it, but for some reason I cannot get it to work correctly. I simply want to run a jar file on restart or boot, the jar file ...
0
votes
0answers
23 views

/etc/sysctl.d doesn't seem to be read at start up

I have added a file to /etc/sysctl.d with these contents: $ more 60-inotify.conf fs.inotify.max_user_watches=100000 Running sysctl -p /etc/sysctl.d/60-inotify.conf does the job. But on reboot the ...
1
vote
1answer
30 views

How configure the upstart in ubuntu in my ec2 [node.js]

I am using an amazon ec2 instance with ubuntu to host my node.js application, i already made all the configurations, and is working good when i type: nodemon ./bin/www ./bin/www is the file that ...
0
votes
0answers
50 views

Upstart vs Systemd Performance

Has anyone measured difference in performance between these 2 systems on Ubuntu? Systemd is coming, and it has it's merits, but I fear Upstart will be tough to beat on Ubuntu, since it had years of ...
0
votes
0answers
30 views

System hangs after /sbin/init starts; no login prompt

I have an Arndale board running Ubuntu 12.04 with the root file system mounted on a MicroSD card. Recent, that card was damaged and I tried to recreate the file system on a new 16GB card. All went ...
0
votes
0answers
29 views

Change logging directory/file for an Upstart service

I have an upstart service that it fills up the space. I need to move the logs from /var/log/upstart to a different directory /pub/data/logs/order_server. I tried to do it using console log --logdir ...
0
votes
0answers
34 views

How to manually start ps2 mouse from command line

It appears I have an intermittent issue in that it's a coin toss whether my ps2 mouse will work after boot. From the time stamps in dmesg it appears to be timing related, and rather than spend ...
0
votes
1answer
13 views

Upstart and isstty(STDOUT_FILENO)

Many Linux programs use istty to determine whether STDOUT is a terminal or not. For example, ls will (by default) suppress coloured output if it's redirected (istty == 0). When running upstart jobs, ...
0
votes
0answers
38 views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...
0
votes
1answer
73 views

Autostart a Python script in an LX terminal

I have a python script which extracts continuous data from an incoming serial string and inserts the fields into an Sql database. The python script can be run manually from an LX terminal and works ...
1
vote
0answers
75 views

Process “/bin/sh -e /proc/self/fd/9” - what starts it and why?

I have a process /bin/sh -e /proc/self/fd/9 that runs on my system. sh -e /path/to/file in dash (which sh is symlinked to on my Kubuntu 14.10) just tests for existence of a file. In /proc/self/fs I ...
2
votes
0answers
18 views

Deluged Upstart not starting [duplicate]

Setting up a new ubuntu server installation (14.04.1), I have been completely unable to get deluge to start as a daemon at system startup. Originally tried following this set of instructions: ...
0
votes
0answers
44 views

How do I setup services to start when Gitlab is ready?

I have a few Upstart services that I would like to have started once Gitlab is started and ready to serve repositories. There is a gitlab-runsvdir Upstart service (came with the gitlab package) that ...
0
votes
1answer
36 views

Can't execute nmcli in an upstart job

The file below is the default network-manager.conf upstart job. $ cat /etc/init/network-manager.conf # network-manager - network connection manager # # The Network Manager daemon manages the system's ...
0
votes
1answer
31 views

Does upstart pass an entire script body to shell for execution or process line-by-line?

My upstart job is failing in pre-start, when it moves any previous logfile to a backup: pre-start script mv -f $LOGDIR/$LOGFILE $LOGDIR/$LOGFILE.bak touch $LOGDIR/$LOGFILE end script I expect ...
0
votes
1answer
39 views

upstart not running jar file once system has booted

I have been working on several bits of code and done a fair bit of testing and looking around for answers before posting this, so I am hoping someone can help solve this with me. The jar I am able to ...
1
vote
1answer
67 views

My command runs in bash, but not from /etc/init, what have I done wrong?

I'm having some trouble with this init script. When I run the command I'm passing to start-stop-daemon from the command line it works perfectly, even if I run it sudoed as the userid in the script, ...
0
votes
1answer
20 views

Log upstart event env var EXIT_SIGNAL/EXIT_STATUS

Upstart has job environment and event environment, I am faimilar with the jobs, and I can write script stanzas to log/exec. But when the process fails, there is a stopped event, which has some useful ...
1
vote
1answer
215 views

sbin/init crash after log in

Hi I have been getting a problem where, every time I log into Ubuntu, a red exclamation mark appears in the top-right of the screen. On clicking it, a window appears to say "Sorry, Ubuntu 12.04 has ...
0
votes
0answers
92 views

Upstart job not starting - virtual-filesystem not emitted?

I have installed logstash from the official elasticsearch repository on Ubuntu 14.10. Installation process added the upstart job /etc/init/logstash.conf and init script /etc/init.d/logstash # ...
2
votes
0answers
36 views

PXE boot 14.04 : filesystem.dir not working: do I have to use filesystem.squashfs?

I've been using PXE-Boot with an extracted filesystem rather than squashfs so far: [NFS-server]:/[cdpath]/casper/filesystem.dir/ instead of [NFS-server]:/[cdpath]/casper/filesystem.squashfs This ...
0
votes
1answer
80 views

Ubuntu 12.04 in login loop as lightdm-session says upstart not found

I tried to install a package systemd (this replaces upstart in Utopic 14.10 and up). See my yesterday question How to Re Generate All Gnome Schemas for Ubuntu 12.04. The result was that it didn't ...
2
votes
2answers
170 views

Ubuntu 14.04 boot hangs at logo after updating

Yesterday, I did a update/dist-upgrade. Today, I powered on the machine and it was hanging at the loading screen with logo and cycling dots - I've waited at this screen for about an hour several times ...
3
votes
0answers
63 views

What service starts a user session before they login? [closed]

I've noticed that I have problems with insync and dropbox icons showing up in my system tray and in investigating the problem it seems to be because they are being started before I even login. In ...
0
votes
0answers
42 views

Having Cisco AnyConnect connect to VPN server at startup on a headless machine

Currently I launch it manually using the following command: printf "y\nMYUSERID\nMYPASSWORD\ny" | /opt/cisco/anyconnect/bin/vpn -s connect VPNSERVERADDRESS I tried putting the same command in ...
3
votes
1answer
179 views

Bash script works from command line, but not if started by upstart

I have a script that listens on port 12 and invokes xbmc when receiving a wol packet. It works perfectly fine when I launch the script directly from the command line, but nothing happens when I let ...
1
vote
0answers
74 views

Running service spacenavd start not same as /etc/init.d/spacenavd start

I have an application which makes use of a 3dconnexion space mouse. It works fine when using the spacenavd daemon however I'm having issues getting the daemon to run at boot or as a service. $ sudo ...
1
vote
0answers
98 views

Is there an alternative to using “sleep 1” in Upstart pre-start script? [closed]

I am running a rails app on Ubuntu 12.04 I was having difficulty getting the service to start on boot. The only thing that solved this issue was to add a "sleep 1" to my pre-start script. I am ...
0
votes
0answers
27 views

Pure-FTPd with virtual users

I recently setup a pure-ftpd server, and I'm wondering about how I would include virtual users within the service. I would normally have to run the program with -l puredb:/etc/pureftpd.pdb. How would ...
0
votes
1answer
41 views

How do I find out what version of upstart I have?

I'm trying to figure out if I should use User Jobs or Session Jobs, since Session Jobs are the proper way to do things from upstart 1.7 onward. I'm running Ubuntu 14.04. How do I find out what ...
0
votes
0answers
44 views

How to run job with access to ssh passphrase

I have a long-running daemon (unison file monitor) that I want to have running at all times. This daemon connects to a remote server through ssh and maintains a local directory synced with a remote ...
1
vote
0answers
18 views

Prevent service from starting manually when dependent services are down

Suppose I have two services db and app (which needs db to be up and running before it starts). They are starting correctly on startup and when I do sudo service db stop it stops both db and app. But ...
1
vote
2answers
53 views

How to enable user jobs in Upstart

I'm trying to allow non-privileged users to run upstart jobs from their $HOME/.init directory. Upstart cookbook mentions that you must enable this, but doesn't mention how to do it. The frustration ...
0
votes
0answers
193 views

etherpad lite on ubuntu 14.04 server

I just installed etherpad-lite on my ubuntu 14.04 server and everything worked fine, I had access to the etherpad on web after startup and could create new pads, add stuff and so on. Just as expected. ...
0
votes
1answer
33 views

How to implement in upstart that a service is preventive restarted every x hours?

I have a component --- started with upstart --- with a bug. The bug causes the application to freeze and unfortunately, it does not crush. As a temporary walk-around, I want to force the service to ...
0
votes
1answer
31 views

Can I remove upstart-* from startup

When I startup my computer I have 80+ processes running - just under my name. Of these, I have 4 that match the regex upstart-*: upstart-dbus-bridge upstart-dbus-bridge upstart-file-bridge ...
2
votes
1answer
123 views

How do I run weechat and screen as an upstart service without error?

I want to run weechat constantly in the background so that I can ssh in and reattach to it via screen. I'm trying to accomplish this via the following file in /etc/init/chatscreen.conf: description ...
0
votes
0answers
83 views

Enabling systemd in Ubuntu 12.04 lxc container

Following is my setup I am running Ubuntu 12.04.1 Precise. I have and lxc container on it running upstart. I want to replace upstart with systemd. I modified the container's lxc with "virsh -c ...
2
votes
1answer
114 views

upstart fail to run service and not able to debug

I am using os-svc-daemon to create my upstart service for openstack project. my upstart job config is as below File : /etc/init/myservice.conf start on runlevel [2345] stop on runlevel [016] env ...
0
votes
1answer
63 views

start: Unknown job: tester while using upstart feature of ubuntu [closed]

I have a jar file which I am running like this in my Ubuntu 10.10 and then it starts my exhibitor server in the background - nohup java -jar ...
0
votes
1answer
31 views

Is it possible to use services that provide their own pid, like dnsmasq, to use with upstart?

I need badly a better way to refresh dnsmasq configuration than in How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address . I cannot afford restarting all ...
1
vote
1answer
88 views

Kill SSHFS at shutdown? (systemd / upstart)

Apparently having an SSHFS mountpoint active while trying to restart or shutdown Ubuntu can cause the system to hang. I would really like to avoid having to possibly power cycle, due to using an md ...
1
vote
0answers
35 views

Upstart - unable to read /etc/shadow unless sudo

In the following script in Upstart, I'm unable to read /etc/shadow in pre-script phase, unless I use $(echo mypass | sudo -S cat /etc/shadow | grep myusername) The script works fine if I provide my ...
0
votes
1answer
124 views

start on emit is not working on upstart

I am working to restart service if stopped. I was looking for upstart, to restart service. I found some answers. I took apache2 service for testing. I changed code as below. # File : ...
0
votes
0answers
166 views

Ubuntu 14 Upstart script respawning process after calling service stop

I have an upstart script that works correctly on Ubuntu 10/12. But on Ubuntu 14 when I call sudo service sync_gateway stop The service is automatically re-spawned as though it exited ...
1
vote
0answers
44 views

How to autorun a script as root just after the user's encrypted home directory has become mounted on headless server?

There is a problem with ecryptfs that it heavily limits the maximal filename length. To walkaround it I link most home subfolders to the external encrypted partition. The partition gets mounted just ...
0
votes
1answer
77 views

Upstart - handling stop when the process is killed

I have upstart configuration for my java process: /etc/init/myjar.conf description "my jar" author "me" start on runlevel [2345] stop on shutdown expect fork script chdir /opt/myjar/ java ...