[09:38] <diimdeep> hello, ii have trouble with shutting down service 
[09:39] <diimdeep> here is http://i.imgur.com/CEIscjv.png
[09:39] <diimdeep> config of service
[09:40] <diimdeep> starting is fine, when trying to stop it says that Unknown instance
[09:43] <jodh> diimdeep: firstly, there is no "shutdown" event at the moment. We have discussed adding "event aliases" in the past though (https://lists.ubuntu.com/archives/ubuntu-devel/2011-June/033402.html). For the list of available events, see "man upstart-events". For shutdown you probably want "stop on runlevel [016]".
[09:45] <jodh> diimdeep: you will probably find the reason you cannot stop the job is because lmgrd forks so although the lmgrd daemon starts, Upstart cannot know its final pid and hence cannot stop it. See http://upstart.ubuntu.com/cookbook/#expect
[09:46] <jodh> diimdeep: and http://upstart.ubuntu.com/cookbook/#how-to-establish-fork-count
[09:46] <diimdeep> jodh, thank you
[09:47] <jodh> diimdeep: also, if you decide you need to use "respawn", please read the warning at the top of this section: http://upstart.ubuntu.com/cookbook/#respawn
[09:48] <diimdeep> jodh, thanks. do i need to use  expect daemon ?
[09:50] <jodh> diimdeep: I don't use lmgrd, so you will need to "establish the fork count" (see link above). If lmgrd forks once, specify "expect fork". If it forks twice, specify "expect daemon". All the information you should need is in the links above.
[09:51] <diimdeep> thanks, do't know about forking.. need to learn that
[10:03] <diimdeep> jodh, what it process forks 4 times >
[10:03] <diimdeep> ?
[10:03] <diimdeep> *if
[10:05] <jodh> diimdeep: https://wiki.xkyle.com/Upstart_Script_For_lmgrd_%28FlexLM%29
[13:18] <hkeide> I want to run a pre-start script as root, but then run the exec itself as an unprivileged user. Is there any way to do this except running the unprivileged job with "su -c command user"?
[13:31] <jodh> hkeide: yes - put the pre-start logic into a separate job such that it will run as root. You can then specify setuid+setgid in the "main" job and have that main job "start on stopped pre-start-job RESULT=ok". Or, you could have the pre-start-job explicitly start the main job if appropriate.
[13:32] <hkeide> hmm ok, I guess I'll go with the single-file approach, I want it to be self contained if at all possible
[13:32] <hkeide> jodh: but thanks anyway
[21:09] <soheilpro> in order to run node.js as a service which approach is better? executing node or using start-stop-daemon?
[21:29] <stgraber> xnox: so that's kubuntu, lubuntu and xubuntu updated for user session support. Looking at ubuntu gnome and ubuntu studio now.
[21:29] <stgraber> xnox: the current plan is to switch all of those on by default in 2 weeks or so
[21:37] <SpamapS> user sessions are neato, but is anybody going to fix "ptrace sucks" ? :-/