Hi, 

    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).

Now I have few queries (may sound like dumb questions).

1. How can I call user-defined shell(bash) functions from the service scripts 
in ExecStartPre and ExecStartPost sections?
   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.

....
EnvironmentFile=/home/me/my_functions_file
ExecStartPre=foo_function param1

----------
ExecStartPre=/bin/bash /home/me/my_functions_file; foo_function param1

----------
ExecStartPre=/home/me/my_functions_file
ExecStartPre=foo_function param1

Nothing is working (strangely, not getting any error messages) !!!!


2. How can I run multiple instances of an executable with different arguments?


3. How can I use user-defined signals in the service scripts?


Please give me a few clues.

Best regards,
--Chinmay




From: Mirco Tischler <mt...@gmx.de>
Sent: Thu, 02 May 2013 20:52:17 
To: Chinmay Mahata <chinmay_mah...@rediffmail.com>
Cc: "systemd-devel@lists.freedesktop.org" 
<systemd-devel@lists.freedesktop.org>
Subject: Re: [systemd-devel] Fedora 16 and upstart
2013/5/2 Chinmay  Mahata <chinmay_mah...@rediffmail.com>

Hi All,
    Sorry for asking such a noob question.

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. 


Hi 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.

So my queries are:

1. Is there any way I can reuse my upstart initctl scripts in fc16 x86_64?

2. What are items/things I need to do in fc16 so that I can reuse the old 
initctl scripts?


Please help me out by sending me your solutions/suggestions.

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 ;-)
Thanks in advance.

Best regards,
--Chinmay


Mirco 
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to