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.
0
votes
1answer
32 views
Systemd is installed on Ubuntu Raring?
Systemd appears to be installed in Ubuntu Raring. What does it provide that upstart doesn't provide? Why is it there? I thought Ubuntu was keeping upstart.
0
votes
0answers
5 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?
0
votes
0answers
10 views
Restart Upstart
I'm in the process of building a job to work in upstart, and any time I have even a typo the entire upstart breaks; not just my job. Is there any way to reload upstart without rebooting?
0
votes
0answers
23 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 ...
0
votes
0answers
10 views
How to modify the LiveUSB to execute a script upon boot
I have created a live usb image (ubuntu desktop) using live usb creator. Now what I am required to do is to boot through the LiveUSB and when it finishes booting it will perform some operation such as ...
1
vote
1answer
23 views
Command fails to execute in upstart session job
This command:
mongod --fork --dbpath ../data --smallfiles --logpath ../data/mongo.log
runs perfectly from terminal, while in directory /mongo/bin/
But, when I use same command and directory for ...
0
votes
0answers
18 views
Powernap daemon doesn't start with upstart
I have a problem with powernap daemon on kubuntu 13.04, which doesn't start with upstart (or with /etc/init.d/powernap start). On my other machine with ubuntu 12.04.2 LTS it starts ok.
$ sudo service ...
0
votes
2answers
56 views
Upstart can't start MySQL
After an installation of MySQL, I get a few errors and I can't run the MySQL daemon. I've tried uninstalling and reinstalling several times, and I'm not sure what's going on.
Here's a snippit of what ...
0
votes
0answers
38 views
Shutdown slow: unknown job s35networking
Since I've upgraded to Ubuntu 13.04 from 12.04 LTS, I get this error when I shutdown the pc:
rather than invoking init scripts through /etc/init.d, use the service(8) utility service S35 ...
2
votes
1answer
32 views
+100
Upstart and core files
I have an upstart job that occasionally crashes with a segmentation fault, and I have a few questions about core dumps.
First, should I add a stanza:
limit core unlimited unlimited
Is there a ...
0
votes
0answers
24 views
Upgrading to Upstart 1.8 in Quantal
Wondering if anybody has any tips for upgrading the version of upstart on Quantal from 1.5 (shipped) to the latest version 1.8.
With 1.7 & 1.8 Upstart brought in some extra support for how env ...
1
vote
1answer
41 views
Startup script doesn't execute at startup
I have followed the tutorial here that shows how to setup the No-ip update program to start at system startup.
I have done exactly as specified here, yet the program still doesn't start. Also, when I ...
1
vote
1answer
44 views
How should I start MongoDB on a NUMA machine?
When I first installed MongoDB 2.2.3 with apt-get, following the instructions from 10gen installation guide, it auto starts when the server starts.
However, after following the instructions in ...
3
votes
2answers
253 views
Why is this laptop taking almost 1 minute to boot Ubuntu 13.04?
My dad's new HP Pavilion dv6 laptop running Ubuntu 13.04 takes almost a minute to boot up - it seems like it's hanging somewhere. Is there something I can do to easily fix it?
I need some help ...
1
vote
0answers
28 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 ...
0
votes
1answer
44 views
Has behaviour of upstart changed in 13.04
I have an upstart conf that mounts a remote nfs at startup. Previously (in 12.10) it used
start on (local-filesystems and net-device-up IFACE=eth0)
in 13.04 this no longer works - I tried all ...
1
vote
0answers
12 views
apport package hook for 3rd-party package not being called
I have a proprietary package, installed via a .deb file. The package provides an upstart script which uses the respawn stanza - i.e. the executable gets restarted when it is killed, even with a ...
0
votes
0answers
26 views
initctl status autofs is stuck on stop/starting
We have an issue with Upstart not restarting the autofs job when the automount process dies, and the Upstart job status gets stuck in the "stop/starting" state. The process is not automatically ...
1
vote
0answers
84 views
Why are there start 'S' symlinks in rc0.d (shutdown) and rc6.d (reboot)?
Start 'S' symlinks in shutdown and restart runlevels?
Why are there 'S00-S99' start symlinks in rc0.d and rc6.d? Ubuntu 13.04 directory listing:
$ ls -l /etc/init.d/rc6.d
lrwxrwxrwx 1 root root ...
0
votes
0answers
30 views
How can I add an upstart script specifically to the end of the boot sequence?
Is there a simple way to determine the last upstart script to run, so I can add my custom bits to depend on that one stub?
I'm asking so I can resolve the Ubuntu-desktop on Nexus 7 bug of audio not ...
1
vote
1answer
30 views
Start and stop parameters in init script
I have .conf a file in /etc/init/ with this code at the bottom:
start on (started network-interface
or started network-manager
or started networking)
stop on (stopping ...
0
votes
1answer
23 views
Upstart with a script that start and finish their own processes
I'm trying to setup in Upstart a script that launch several internal procs and kill them if is required
$ listener.py -startall
$ listener.py -killall
I can run it with this settings:
# Listener ...
0
votes
0answers
28 views
How can I inspect Upstart Job States Transitions Using log file?
I want to have a look at the states transitions using the method described here:
http://upstart.ubuntu.com/cookbook/#viewing-state-transitions.
This is what I do:
# initctl log-priority debug
# ...
1
vote
1answer
52 views
Upstart script that depends on init.d scripts?
I have an upstart script to start a custom nodejs app. The app depends on couchdb and elasticsearch. couchdb and elasticsearch provide init.d scripts for starting/stopping them. Is it possible to tell ...
0
votes
0answers
57 views
How will I be able to enable user mode for Upstart on on 13.04?
Once 13.04 comes out, I'd like to install it with the unsupported "Upstart user mode." I have read the docs and see the "from TTY" information, but it's not clear how to make the login from LightDM ...
1
vote
0answers
43 views
Why can't we remove bluetooth service the reguler way?
The usual way to remove services from startup scripts is to remove it from starting up in the first place (man update-rc.d). Meaning removing the symbolic link to /lib/init. In this case executing ...
0
votes
1answer
22 views
Startup script for spawn-fcgi
I would like to use spawn-fcgi to start a web.py application on system boot. Is there any facility for managing spawn-fcgi through Upstart? (Is Upstart the modern system for managing services, or ...
3
votes
1answer
42 views
Can I use a custom shell with upstart script stanza?
I'm writing a few daemons implemented in pure shell script and would like to use zsh(powerful substitutions, modules with socket/tcp handling, etc) instead of the default /bin/sh. Can I tell the ...
1
vote
1answer
59 views
How do I restart conky and nautilus whenever they crash?
Many times nautilus crashes because of various reasons. When nautilus crash, it crashes with conky. The only way to get back conky and active desktop is to start nautilus and conky from terminal.
...
0
votes
1answer
57 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
46 views
nothing is written in a file created from a upstart job
I have a program in /home/me/bin/foo, typically compiled from :
// includes
...
#define PATHNAME "/home/me/bin/bar.txt"
int main ()
{
FILE* f;
f = fopen(PATHNAME, "wb"); // I skip the possible ...
1
vote
0answers
38 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. ...
0
votes
0answers
39 views
How is nbd-server supposed to start at boot time under Ubuntu 12.04?
So, a client upgraded from 10.04 to 12.04 on a whim. Suddenly things didn't work. They have a couple old machines that they use as terminals with LTSP. After the upgrade they couldn't get the ...
2
votes
0answers
51 views
Is there an ncurses tool for upstart similar to ntsysv or sysv-rc-conf?
I'd like to be able to use a terminal or console to configure runlevels. I don't need the conditions for starting and stopping services to be any more complicated than sysv. I just want to base ...
0
votes
0answers
165 views
Starting bumblebeed on boot
I have recently installed bumblebee and it works great - except that bumblebeed doesn't start automatically when I boot. I have tried to run $ sudo update-rc.d bumblebeed defaults, but it doesn't make ...
0
votes
0answers
117 views
alternative of “chkconfig” command in Ubuntu 12.04 or lower
How to use chkconfig --list in Ubuntu .
It's asking for install this but I don't have privilege to install any package on the server and have to fix the issue.
As I am working with redhat/Centos, but ...
1
vote
0answers
52 views
declaring dependencies in upstart
It seems as if the accepted way to specify a dependency of service A on service B in upstart is to work in the reverse dependency direction: give service B a start on starting A stanza.
I'd like to ...
0
votes
1answer
72 views
How to check if openvpn is connected in Upstart?
I need to run a script after mysql and openvpn are started (Ubuntu for ARM).
I can succesfully run the script with upstart with this .conf:
# my upstart for logging boot
start on (starting openvpn ...
0
votes
0answers
60 views
static-network-up not emitted if virtual interfaces present?
I'm wondering if I've found a bug in ifupdown, but I wanted to ask here before reporting a bug:
/etc/network/if-up.d/upstart seems to fail to emit static-network-up if any virtual interfaces are ...
3
votes
1answer
198 views
How do I change the user Transmission runs under?
I installed Transmission through a PPA and the daemon starts on boot. I want to change the user that runs the daemon because I want the downloaded files to be under the same user as my XBMC ...
1
vote
1answer
275 views
Console prompt during boot (for truecrypt)
In short: Please provide me with a up-to-date best practice solution to mount my Truecrypt volumes at boot with secure password prompt! I may accept a answer that has nothing to do with Truecrypt and ...
0
votes
1answer
67 views
Tips on creating a upstart script
I have a few questions that I'm looking for some pointers for.
Once I create my upstart .conf file, how exactly do I "install" it and activate it?
How do you go about debugging the script while ...
1
vote
1answer
52 views
Is $RUN a built in command to execute?
I have a .sh script that starts a java service of mine (I didn't write this).
Can someone explain how this actually executes?
start() {
..
..
# setup classpath
. $ROOT/bin/_cp.sh
...
2
votes
2answers
135 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.
...
0
votes
1answer
51 views
Redirecting /dev/null to some other device
Is it possible to redirect, ie create /dev/null as non-null device, like /dev/console or /dev/stdout? This obviously has to be done before init runs create creates a standard /dev/null. Upstart seems ...
2
votes
2answers
164 views
Configuring mongo DB to work with NTFS drive
I have 120 GB SSD Drive with two partitions (NTFS with Windows and ext4 with Ubintu) and 2TB NTFS HDD shared between Windows and Ubuntu.
I configured my HDD to be properly mounted on system boot:
# ...
3
votes
1answer
155 views
Simplest way to make a command run after system reboot
I have a server which exists to run one little Django application. If the server reboots, I want Django to start again:
nohup /opt/myapp/manage.py runserver ...
I'm having trouble finding a simple ...
0
votes
1answer
223 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 ...
0
votes
3answers
139 views
How to determine status of upstart job in bash script?
How do you determine if an upstart job is running inside of a Bash script? That is I need a "boolean" value to do something like:
#!/bin/bash
if [ determine_if_job_x_is_running ]; then
echo "I see ...
4
votes
1answer
394 views
Why does upstart fail to start my juju service with Unknown job: juju-ubuntu-0?
I'm having issues launching juju on an lxc container through regular juju deploy commands:
juju bootstrap
juju deploy ubuntu
The ubuntu juju status continually says pending. The LXC starts, and I ...
