3 ms·
In my case, the "Upstart Intro, Cookbook and Best Practises" document has told me all I needed to know. For example, here's the info on Runlevels, including ho
by icebraining 14y ago
In my case, the "Upstart Intro, Cookbook and Best Practises" document has told me all I needed to know.
For example, here's the info on Runlevels, including how to set Single-User mode either temporarily or permanently: http://upstart.ubuntu.com/cookbook/#runlevels http://upstart.ubuntu.com/cookbook/#runlevels
all I want to do is run a new script on boot. why do i want upstart??
Frankly, if all you wanted was that, you could just stick the script in the kernel init= parameter, no need for Upstart or SysV ;)
Both of them are daemon management applications, and frankly I don't think it makes much sense to optimize for the "running script on boot" versus sanely managing daemon startup.
That said, at least on Ubuntu the SysV infrastructure is still called (as an Upstart job), so you should still be able to stick something in /etc/rc.local.
Alternatively, you can just write an Upstart configuration file:
post-start script
#your script here
end script