/srv/irclogs.ubuntu.com/2013/05/31/#upstart.txt

diimdeephello, ii have trouble with shutting down service 09:38
diimdeephere is http://i.imgur.com/CEIscjv.png09:39
diimdeepconfig of service09:39
diimdeepstarting is fine, when trying to stop it says that Unknown instance09:40
jodhdiimdeep: 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:43
jodhdiimdeep: 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/#expect09:45
jodhdiimdeep: and http://upstart.ubuntu.com/cookbook/#how-to-establish-fork-count09:46
diimdeepjodh, thank you09:46
jodhdiimdeep: also, if you decide you need to use "respawn", please read the warning at the top of this section: http://upstart.ubuntu.com/cookbook/#respawn09:47
diimdeepjodh, thanks. do i need to use  expect daemon ?09:48
jodhdiimdeep: 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:50
diimdeepthanks, do't know about forking.. need to learn that09:51
diimdeepjodh, what it process forks 4 times >10:03
diimdeep?10:03
diimdeep*if10:03
jodhdiimdeep: https://wiki.xkyle.com/Upstart_Script_For_lmgrd_%28FlexLM%2910:05
hkeideI 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:18
jodhhkeide: 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:31
hkeidehmm ok, I guess I'll go with the single-file approach, I want it to be self contained if at all possible13:32
hkeidejodh: but thanks anyway13:32
soheilproin order to run node.js as a service which approach is better? executing node or using start-stop-daemon?21:09
stgraberxnox: so that's kubuntu, lubuntu and xubuntu updated for user session support. Looking at ubuntu gnome and ubuntu studio now.21:29
stgraberxnox: the current plan is to switch all of those on by default in 2 weeks or so21:29
SpamapSuser sessions are neato, but is anybody going to fix "ptrace sucks" ? :-/21:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!