[11:12] hello all [11:15] i'm using Ubuntu9.10 server, putting nginx under upstart, 'start nginx' cmd makes nginx starting and runnig but the job is registered and then unregistered while nginx keeps runnig, when use 'stop nginx' get: "stop: Unknown instance:" [11:15] some hint? [11:17] yep, sounds like it forks more often than upstart expects [11:18] what "expect" line do you have? [11:19] JanC: don't an 'expect' line [11:20] you probably need an "expect daemon" line or such (see "man 5 init") [11:20] ok thnx a lot, try immediatly [11:21] i tried before the with a line only containing 'daemon' it resulted in error [11:22] JanC: yes it's ok now, thnx [11:23] i was reading this: http://upstart.ubuntu.com/wiki/Stanzas and it was clear to me [11:23] is there some other docs about upstart 0.6.3? [11:25] ...and now the 'stop' cmd hangs [11:25] docs --> see the manpage I pointed to [11:25] ok thnx [11:27] it stpos it correctly though [11:40] bye all, JanC thanks again === sadmac2__ is now known as sadmac2 === rberger_ is now known as rberger === woozy_ is now known as woozy [23:22] hi [23:22] is anyone alive here? === Jaja_ is now known as Tartaros [23:23] I wonder if it makes sense in the current state of affairs to actually use upstart for definition of my own services/tasks [23:23] I mean, is it stable enough/ [23:23] ? [23:24] stable as in api [23:24] also there seem to be quite a lack of tutorials/documentations... [23:24] man init [23:25] regarding the API, are you referring to the job file syntax? [23:25] yeah I guess so [23:26] afaik it is not set in stone. It won't be before 1.0 is released [23:26] "man 5 init" actually, if you want to see the syntax documentation [23:26] I use Upstart for my jobs. The syntax may change in the future, but i’ll just do the changes needed when upgrading to a new distro release. [23:26] JanC: yes, thanks [23:27] 0.10/1.0/whatever may implement backwards compatibility for 0.6 jobs, though. [23:27] well as of current state, do I understand correctly that basically all ubuntu services still have their old init.d scripts, which are only used by "placeholder" simple scripts in /etc/init ? [23:27] Tartaros: I assume that given Ubuntu uses upstart heavily in 9.10, it will keep compat for 0.6 [23:28] Tartaros: that is no longer correct since 9.10 [23:28] The most essential Ubuntu stuff has already migrated to Upstart. [23:28] everything that runs on the default desktop I think [23:29] so what' [23:29] what's /etc/init.d for? [23:29] Tartaros: It's kept for backward compatibility [23:29] I mean how is it still so full? [23:29] so, is it being used or not? [23:29] Tartaros: are you running 9.10? [23:30] yes, 9.10 [23:30] actually, there are fake sysvinit scripts in there ;) [23:30] most of them are symlinks [23:30] check with ls -la [23:30] fake? yeah I know but they point somewhere [23:30] Tartaros: sys admins are used to type /etc/init.d/ [23:31] /lib/init/upstart-job is a tiny, simple shell script [23:31] so that's all they're for? if you don't type this manually, they're not used? [23:31] which basically runs the native upstart jobs [23:31] yeah, they are only for sysadmins convenience [23:31] oh, ok then [23:32] and the "service" command is upstart based or initv based? [23:32] Better check /etc/rc?.d/ [23:32] symlinks in there point to services that are still sysv [23:33] rcS.d and rc2.d are pretty nowadays on a default Ubuntu desktop install [23:33] pretty empty, i.e. [23:33] The service command it designed as the proper way to call sysvinit scripts. [23:33] is [23:34] aso for upstart one should use initctl right? [23:34] Or the symlinks to it, such as start, stop and restart. [23:35] yeah [23:35] ok [23:35] as for creating a service - all one is supposed to do is adding a new myjob.conf file in /etc/init, right? [23:36] and also, is there a way to list events that are in use? [23:37] say I want to run something "when network is on" but I don't know what even(s) that means... where do I look? [23:37] /etc/init, yes. As a personal preference, i put my local jobs under /etc/init/local/ for easy access. [23:37] Tartaros: grep for "emit" [23:38] emits, actually [23:38] in /etc/init [23:38] this list is not exhaustive though [23:38] there are "inbuilt" events? [23:39] where are they liste [23:39] d? [23:39] Upstart’s internal events are documented in init(5). Some of the events emitted by jobs are documented under /etc/init as mbiebl mentioned. ifupdown installs the script /etc/network/if-up.d/upstart, which emits the net-device-up event. [23:41] cool [23:44] one last thing :) [23:44] when I want something to be run as a specified user, is there some sort of support for that? [23:44] For now, use su. [23:44] or do I just do se [23:44] su [23:44] yeah [23:44] ok [23:45] thanks :) [23:45] PAM sessions support is in TODO, but not implemented yet. [23:45] so without su, it's run as root right? [23:47] Yes [23:47] ok [23:47] thanks for all the info :)