[systemd-devel] writing service file that used some /proc/cmdline variable

Ran Benita ran234 at gmail.com
Wed May 21 10:49:33 PDT 2014


On Wed, May 21, 2014 at 08:44:22PM +0300, Ran Benita wrote:
> On Wed, May 21, 2014 at 09:38:43PM +0400, Vasiliy Tolstov wrote:
> > Hello. I'm need to write specific service file that using
> > /proc/cmdline variable (not standard, my own).
> > Does systemd already have parsed array or how can i do that?
> 
> ConditionKernelCommandLine=
> See systemd.unit(5)

Oops, I thought you meant a condition.  I don't know if there's a
a way to *use* the variables directly in the service files, but it can
be done easily enough with a shell-script wrapper.


More information about the systemd-devel mailing list