2
votes
1answer
31 views

How can I make sure one Upstart job stops before another Upstart job stops?

Sometimes my server is shut down via an ACPI shutdown, and I've managed to get my process to gracefully shut down. However, my process (Job A) relies on another process (Job B) during its graceful ...
1
vote
0answers
417 views

upstart and incompatible sysvinit scripts

When I reboot or try to shutdown I get the following message: Error: Calling a sysvinit script on a system using upstart isn't supported. Please use the 'service' command instead. How do I find ...
1
vote
0answers
26 views

Stop job before it's dependencies

I have a job that does some things and uses other locally installed services (such as the mail server). Sometimes I do an ACPI shutdown but I need this service to complete the ongoing operation ...
3
votes
2answers
250 views

Creating a “deadman” switch using Ubuntu to shutdown EC2 instance

I've put together a simple "deadman switch" using upstart to automatically shutdown my EC2 instances after a period of time. I'm doing this to avoid the dreaded Monday morning blues when you realized ...
0
votes
1answer
787 views

Upstart job doesn't die correctly

I'm making a simple upstart daemon. Following the Upstart documentation[1] I make the conf script: description "Super Daemon" author "Bastian Baltasar Bux" start on started dbus stop on runlevel ...
3
votes
0answers
291 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 ...
1
vote
0answers
814 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 ...
3
votes
2answers
222 views

What happens to manual Upstart services on shut down?

If using the manual keyword in an init or override Upstart script, it is not clear whether the services shut down process will be initiated or it will just be killed on shut down. For instance, will ...
7
votes
2answers
8k views

How do I configure upstart to run a script on shutdown when the process takes longer than 10secs?

I am running ubuntu 11.10 in a virtual machine (VirtualBox) to learn more about development in linux. I am using a git repository to save my work and have written a script to bundle my work up and ...
5
votes
3answers
3k views

Best way to make a shutdown hook?

Since Ubuntu relies on upstart for some time now, I would like to use an upstart job to gracefully shutdown certain applications on system shutdown or reboot. It is essential that the system's ...