Hi, <br><br> Thanks a lot, everybody for your support, for quick and valuable comments. So it is time for me to write the systemd service scripts (and bite the bullet !!! to be frank, I am not feeling much confident).<br><br>Now I have few queries (may sound like dumb questions).<br><br>1. How can I call user-defined shell(bash) functions from the service scripts in ExecStartPre and ExecStartPost sections?<br> Like I have a shell file "/home/me/my_functions_file", inside it, there is a function "foo_function". I used different ways (below) in my scripts but all failed miserably.<br><br>....<br>EnvironmentFile=/home/me/my_functions_file<br>ExecStartPre=foo_function param1<br><br>----------<br>ExecStartPre=/bin/bash /home/me/my_functions_file; foo_function param1<br><br>----------<br>ExecStartPre=/home/me/my_functions_file<br>ExecStartPre=foo_function param1<br><br>Nothing is working (strangely, not getting any error messages) !!!!<br><br><br>2. How can I run multiple instances of an executable with different arguments?<br><br><br>3. How can I use user-defined signals in the service scripts?<br><br><br>Please give me a few clues.<br><br>Best regards,<br>--Chinmay<br><br><br><br><br>From: Mirco Tischler <mt-ml@gmx.de><br>Sent: Thu, 02 May 2013 20:52:17 <br>To: Chinmay Mahata <chinmay_mahata@rediffmail.com><br>Cc: "systemd-devel@lists.freedesktop.org" <systemd-devel@lists.freedesktop.org><br>Subject: Re: [systemd-devel] Fedora 16 and upstart<br><div dir="ltr">2013/5/2 Chinmay Mahata <span dir="ltr"><chinmay_mahata@rediffmail.com></span><br><div cl-ass="gmail_extra"><div cl-ass="gmail_quote"><blockquote cl-ass="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi All,<br> Sorry for asking such a noob question.<br><br>I am migrating my system from fedora 13 (fc13) to fedora 16 64-bit (fc16 x86_64) version. In fc13 all our module service scripts are written for upstart/initctl. In fc16, there is no upstart/initctl support any more, but there is systemd as the init system. <br>
<br></blockquote><div style="">Hi</div><div style=""> </div><div style="">You do realise that F16 is EOL and won't receive any updates (not only systemd, but in general)? I'd strongly recommend using F18 instead.</div><div style="">
<br></div><blockquote cl-ass="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">So my queries are:<br><br>1. Is there any way I can reuse my upstart initctl scripts in fc16 x86_64?<br>
2. What are items/things I need to do in fc16 so that I can reuse the old initctl scripts?<br><br></blockquote><blockquote cl-ass="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Please help me out by sending me your solutions/suggestions.<br><br></blockquote><div>Upstart scripts aren't supported. You need to rewrite them as systemd unit files. If you're lucky, that isn't too much work though ;-)</div>
<blockquote cl-ass="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thanks in advance.<br><br>Best regards,<br>--Chinmay<br><br>
</blockquote><div style="">Mirco </div></div></div></div>
<br><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A><br><div style="font-family:Arial, Helvetica, sans-serif; font-size:14px">Get your own <span style="font-size:12px; font-family:Arial, Helvetica, sans-serif;background-color:#C00; color:#FFF; padding: 0 3px;"><b>FREE</b></span> website and domain with business email solutions, <a href="http://track.rediff.com/click?url=___http://hosting.rediff.com/rediffmailpro/business-email?sc_cid=sig___&cmp=sig&lnk=sig&nsrv1=host">click here</a></div>