cristian_c | hi | 07:22 |
---|---|---|
cristian_c | I've to convert a sysv/upstart daemon to a systemd service | 07:22 |
cristian_c | I've read the migration documentation but I need to get information about some field values of the .service file | 07:22 |
cristian_c | I need to know what value to use in Type= field and what value in After= field | 07:22 |
cristian_c | Any ideas how to retrieve these? | 07:23 |
LetoThe2nd | hi! i'm trying to create a simple upstart service which basically only consist of pre-start and pre-stop. pre-start works as expected, but pre-stop seems to never be called. | 11:25 |
LetoThe2nd | is there anything i'm probably missing? | 11:26 |
LetoThe2nd | current state is http://pastebin.com/aqy3xvtM | 11:27 |
LetoThe2nd | (found workaround https://bugs.launchpad.net/upstart/+bug/252996/comments/5 - but is that really a good idea?) | 11:30 |
lnykryn | cristian_c: do you have the original upstart.conf/initscript somewhere? | 12:54 |
cristian_c | lnykryn: I've got the original script, yes | 12:54 |
lnykryn | can you post it somewhere? I could take a look (unless it is confidential of course :-) ) | 12:55 |
cristian_c | yes | 12:55 |
cristian_c | html2pop3.sh | 12:56 |
cristian_c | the filename | 12:56 |
cristian_c | I pastebin it | 12:57 |
cristian_c | hmmm, I'll use private pastie, from pastie service | 12:57 |
cristian_c | so, I get the exact version of the script | 12:57 |
cristian_c | ok, 2.56a version | 13:01 |
cristian_c | I'm getting the source to paste | 13:03 |
cristian_c | lnykryn: http://pastie.org/private/ohomaztoeikcre14y5lq | 13:07 |
lnykryn | looks like Type=simple , the initscript runs $JAVA $COMANDO& which means that the process does not do fork | 13:09 |
cristian_c | of, not forking | 13:09 |
lnykryn | and since it does not have any LSB header, it means that it does not need anything special in the After | 13:09 |
cristian_c | ok | 13:10 |
cristian_c | so, I'll follow the classic example of unit file in archlinux wiki / systemd how-to documentation | 13:10 |
cristian_c | lnykryn: thank ypu very much! | 13:11 |
cristian_c | *you | 13:11 |
lnykryn | Also you might want to KillSignal=SIGKILL in the [Service] section so it matches the behavior of the initscript during stop action | 13:12 |
cristian_c | ok | 13:12 |
cristian_c | thank you again | 13:13 |
lnykryn | you are welcome :-) | 13:14 |
lnykryn | next time it might be better to ask on #systemd channel | 13:15 |
cristian_c | lnykryn: #systemd guy told me asking in #ubuntu channel | 13:17 |
cristian_c | lnykryn: #ubuntu guy told me aaking in #upstart channel | 13:17 |
cristian_c | :D | 13:17 |
cristian_c | in the meantime I've read the 30 pages systemd-ebook-psankar 'systemd for administrator' | 13:18 |
cristian_c | *administrators | 13:19 |
cristian_c | blog story | 13:19 |
lnykryn | cristian_c: yep, that is a good start, also David Strauss gave recently a really nice talk about some basic concepts in systemd http://www.slideshare.net/warpforge/effective-service-and-resource-management-with-systemd | 13:21 |
cristian_c | I've read all the 8 parts of the psankar book, but it was not very much useful to write the unit, in my case (I didn't know what parameter/value pairs to use in the new unit .service file) :) | 13:24 |
cristian_c | lnykryn: ok, thanks for the link | 13:24 |
cristian_c | very interesting slides! ^^ | 13:40 |
cristian_c | pictures are much helpful! | 13:41 |
owen1 | my upstart script doesn't start at reboot. any ideas? http://askubuntu.com/questions/759706/how-to-write-upstart-script-for-a-background-service-db | 17:47 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!