[09:38] hello, ii have trouble with shutting down service [09:39] here is http://i.imgur.com/CEIscjv.png [09:39] config of service [09:40] starting is fine, when trying to stop it says that Unknown instance [09:43] 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] 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] diimdeep: and http://upstart.ubuntu.com/cookbook/#how-to-establish-fork-count [09:46] jodh, thank you [09:47] 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] jodh, thanks. do i need to use expect daemon ? [09:50] 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] thanks, do't know about forking.. need to learn that [10:03] jodh, what it process forks 4 times > [10:03] ? [10:03] *if [10:05] diimdeep: https://wiki.xkyle.com/Upstart_Script_For_lmgrd_%28FlexLM%29 [13:18] 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] 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] 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] jodh: but thanks anyway [21:09] in order to run node.js as a service which approach is better? executing node or using start-stop-daemon? [21:29] xnox: so that's kubuntu, lubuntu and xubuntu updated for user session support. Looking at ubuntu gnome and ubuntu studio now. [21:29] xnox: the current plan is to switch all of those on by default in 2 weeks or so [21:37] user sessions are neato, but is anybody going to fix "ptrace sucks" ? :-/