[lxc-devel] Starting lxc via systemd on openSUSE: "action: command not found"

Johannes Kastl mail at ojkastl.de
Wed Aug 13 19:22:47 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

I tried to get some lxc containers to start on openSUSE, but could not
get the systemd-service to start:

> sudo systemctl status lxc.service lxc.service - LXC Container
> Initialization and Autoboot Code Loaded: loaded
> (/usr/lib/systemd/system/lxc.service; disabled) Active: failed
> (Result: exit-code) since Di 2014-08-12 10:41:47 CEST; 5s ago 
> Process: 2792 ExecStart=/usr/lib/lxc/lxc-autostart-helper start
> (code=exited, status=1/FAILURE) Process: 2790
> ExecStartPre=/usr/lib/lxc/lxc-devsetup (code=exited,
> status=0/SUCCESS) Main PID: 2792 (code=exited, status=1/FAILURE)
> 
> Aug 12 10:41:47 XXX lxc-autostart-helper[2792]:
> /usr/lib/lxc/lxc-autostart-helper: line 101: action: command not
> found Aug 12 10:41:47 XXX lxc-autostart-helper[2792]: [73B blob
> data] Aug 12 10:41:47 XXX systemd[1]: lxc.service: main process
> exited, code=exited, status=1/FAILURE Aug 12 10:41:47 XXX
> systemd[1]: Failed to start LXC Container Initialization and
> Autoboot Code. Aug 12 10:41:47 XXX systemd[1]: Unit lxc.service
> entered failed state.

The reason seem to be lines containing 'action' in
/usr/lib/lxc-autostart-helper:

> $ grep -C 2 action /usr/lib/lxc/lxc-autostart-helper 
> wait_for_bridge # Start autoboot containers first then the NULL
> group "onboot,". action $"Starting LXC autoboot containers: "
> /usr/bin/lxc-autostart $OPTIONS $BOOTGROUPS touch
> "$localstatedir"/lock/subsys/lxc ;; -- # delaying the system
> shutdown / reboot as much as we can since it's not #
> parallelized...  Even 5 second timout may be too long. action
> $"Stopping LXC containers: " "$bindir"/lxc-autostart $STOPOPTS
> $SHUTDOWNDELAY rm -f "$localstatedir"/lock/subsys/lxc ;;

I have never seen a shell command action before, so maybe this is some
systemd/sysvinit-related thing? Why does this not work on openSUSE?
Maybe the rc-file is not sourced (I remember there is a file being
sourced, I just do not have the autostart-helper script right here...)?

Any openSUSE-users out there?

Regards,
Johannes
- -- 
| Yes, I know. But there are even conjobs running as user games?
Sometimes when cron is bored he starts playing games, didn't you know?
 ;-)
(Aschwin Marsman and Robert Schiele on the opensuse-Mailinglist)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlPruwcACgkQzi3gQ/xETbI7gACfSf2b6m2f1ZtIeNNjwTWyeeZv
3GkAniAvRy9Iu++75w18Tj56eXLr9+TP
=dKmX
-----END PGP SIGNATURE-----



More information about the lxc-devel mailing list