[07:22] hi [07:22] I've to convert a sysv/upstart daemon to a systemd service [07:22] I've read the migration documentation but I need to get information about some field values of the .service file [07:22] I need to know what value to use in Type= field and what value in After= field [07:23] Any ideas how to retrieve these? [11:25] 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:26] is there anything i'm probably missing? [11:27] current state is http://pastebin.com/aqy3xvtM [11:30] (found workaround https://bugs.launchpad.net/upstart/+bug/252996/comments/5 - but is that really a good idea?) [12:54] cristian_c: do you have the original upstart.conf/initscript somewhere? [12:54] lnykryn: I've got the original script, yes [12:55] can you post it somewhere? I could take a look (unless it is confidential of course :-) ) [12:55] yes [12:56] html2pop3.sh [12:56] the filename [12:57] I pastebin it [12:57] hmmm, I'll use private pastie, from pastie service [12:57] so, I get the exact version of the script [13:01] ok, 2.56a version [13:03] I'm getting the source to paste [13:07] lnykryn: http://pastie.org/private/ohomaztoeikcre14y5lq [13:09] looks like Type=simple , the initscript runs $JAVA $COMANDO& which means that the process does not do fork [13:09] of, not forking [13:09] and since it does not have any LSB header, it means that it does not need anything special in the After [13:10] ok [13:10] so, I'll follow the classic example of unit file in archlinux wiki / systemd how-to documentation [13:11] lnykryn: thank ypu very much! [13:11] *you [13:12] Also you might want to KillSignal=SIGKILL in the [Service] section so it matches the behavior of the initscript during stop action [13:12] ok [13:13] thank you again [13:14] you are welcome :-) [13:15] next time it might be better to ask on #systemd channel [13:17] lnykryn: #systemd guy told me asking in #ubuntu channel [13:17] lnykryn: #ubuntu guy told me aaking in #upstart channel [13:17] :D [13:18] in the meantime I've read the 30 pages systemd-ebook-psankar 'systemd for administrator' [13:19] *administrators [13:19] blog story [13:21] 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:24] 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] lnykryn: ok, thanks for the link [13:40] very interesting slides! ^^ [13:41] pictures are much helpful! [17:47] 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