/srv/irclogs.ubuntu.com/2018/03/09/#upstart.txt

bn_workhi, I know upstart has kinda been abandoned but does anyone know of a good guide that talks about how to migrate an older SysV style init script to Upstart?  I have looked at the official docs (http://upstart.ubuntu.com/cookbook/) and random blog posts (ex: https://coderwall.com/p/rt0qmg/upstart-a-builtin-alternative-to-god-and-monit , https://nnc3.com/mags/LM10/Magazine/Archive/2007/76/062-068_upstart/article.html)18:38
bn_workbut haven't seen any real good documentation on how to "translate" to the "new model"18:38
bn_work(note, this is on a Ubuntu 14.04 LTS box which I'm not too keen on upgrading yet)18:39
hallynshouldn't 14.04 already be upstart?18:44
hallynthe cookbook is the best guide i know of, i'm afraid18:44
hallynbut it shouldn't be hard.  upstart scripts were easy to write18:44
bn_workhallyn: it  is already upstart but I have software on it that only provides a SysV init script18:45
hallynok yeah, just look atthe existing scripts, shoudl be pretty clear how to convert.18:46
bn_workhallyn: there is http://upstart.ubuntu.com/cookbook/#migration-from-system-v-initialization-scripts but it talks nothing about migration18:46
bn_workuh... not really?18:46
hallyn<shrug>18:47
hallynwhch part is causing trouble?18:47
bn_workI was hoping there some kind of table showing how to map the concepts from one to the other?18:47
bn_workan upstart (.conf?) file (job?) isn't a shell script anymore, correct?18:48
hallynright18:48
hallynit has 'start on / stop on' for ordering, 'pre-start script' 'script' etc which can be shellscripts  (inline) for running,18:48
bn_workI mean honestly the vendor should be doing this but they have no clue, so I'm trying to kinda point them to the right resources18:48
hallynand the 'expect daemon' or whatever for tracking init18:48
hallynit doesn't really map bc waht you'd be mapping from is kind of free-form :)18:49
bn_work`expect daemon`?18:49
hallynhttp://upstart.ubuntu.com/cookbook/#expect18:49
bn_workyeah, but most init scripts have a basic structure in terms of supporting params like start/stop/status/restart18:49
hallynbest is if  you can run the software sothat it just runs in the foreground,18:50
hallynanyway let's see, maybe someone else here knows of a better guide along the lines of what you want18:51
bn_workok, just read the entry on `expect [fork|daemon|stop]`18:56
bn_workif it's of any help, the source script I'm trying to adapt is at http://www.reprisesoftware.com/RLM_Enduser.html (under "Starting the rlm server at system boot time on Unix systems")19:00
bn_workseems it supports start/stop19:01

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