[systemd-devel] how can I add a boot parameter to a app which depend on kernel boot option

zhang xiong panda0626 at gmail.com
Tue May 13 03:48:28 PDT 2014


Hi, All:
     I face a problem when I'm using systemd. It's appreciate that someone
can give me some suggestion.
     I want to boot an app from systemd and this app's boot parameter is
gotten from /proc/cmdline.
     the boot logic of my app is:

     if boot_option = a
        ExecStart=myapp --parameter=value1
     else if boot_option = b
        ExecStart=myapp --parameter=value2

      how can I implement this logic in myapp.service ?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140513/c4f878df/attachment-0001.html>


More information about the systemd-devel mailing list