[lxc-devel] systemd support: generated lxc.service file broken?

Harald Dunkel harri at afaics.de
Fri Jun 20 17:39:04 UTC 2014


Hi folks,

if I build the top of the 1.0.4 branch on Debian, then the
generated lxc.service file contains bad ExecStart* and ExecStop
options:

% ./autogen.sh ; configure; make
:
:
% grep ^Exec config/init/systemd/lxc.service
ExecStartPre=${exec_prefix}/libexec/lxc/lxc-devsetup
ExecStart=${exec_prefix}/libexec/lxc/lxc-autostart-helper start
ExecStop=${exec_prefix}/libexec/lxc/lxc-autostart-helper stop

According to systemd.service(5) the first argument of the
ExecStart and ExecStop options "must be a literal and absolute
path name". Variables are not allowed here.

syslog (of a real life installation) says:

:
Jun 20 09:48:38 cecil systemd[1]: [/lib/systemd/system/lxc.service:8] Executable path is not absolute, ignoring: ${prefix}/lib/x86_64-linux-gnu/lxc/lxc-devsetup
Jun 20 09:48:38 cecil systemd[1]: [/lib/systemd/system/lxc.service:9] Executable path is not absolute, ignoring: ${prefix}/lib/x86_64-linux-gnu/lxc/lxc-autostart-helper start
Jun 20 09:48:38 cecil systemd[1]: [/lib/systemd/system/lxc.service:10] Executable path is not absolute, ignoring: ${prefix}/lib/x86_64-linux-gnu/lxc/lxc-autostart-helper stop
:

Probably a bad substitution on processing lxc.service.in.


Regards
Harri


More information about the lxc-devel mailing list