[lxc-devel] [lxc/lxc] 308378: don't make sysv init scripts dependant on distribu...

GitHub noreply at github.com
Mon Apr 25 13:55:49 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 3083782cf871b7278f4643414bc060830659f6f4
      https://github.com/lxc/lxc/commit/3083782cf871b7278f4643414bc060830659f6f4
  Author: Evgeni Golov <evgeni at debian.org>
  Date:   2016-04-15 (Fri, 15 Apr 2016)

  Changed paths:
    M config/init/sysvinit/lxc-containers.in
    M config/init/sysvinit/lxc-net.in

  Log Message:
  -----------
  don't make sysv init scripts dependant on distribution specifics

- /etc(/rc.d)?/init.d/functions does not exist on all distributions
- LSB does not define a message function without an explicit status
- Debian-derived systems add a log_daemon_msg for that

lets define an own log_daemon_msg as echo and try to load LSB init
functions afterwards, which might overload it with a nicer version

that way the init scripts should work on any system, without hard
dependencies on neither LSB nor /etc/init.d/functions

Closes #309 #310 #311

Signed-off-by: Evgeni Golov <evgeni at debian.org>


  Commit: 1bf4292e3f94598e961d1ce63e1b89cbca2cc33f
      https://github.com/lxc/lxc/commit/1bf4292e3f94598e961d1ce63e1b89cbca2cc33f
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2016-04-25 (Mon, 25 Apr 2016)

  Changed paths:
    M config/init/sysvinit/lxc-containers.in
    M config/init/sysvinit/lxc-net.in

  Log Message:
  -----------
  Merge pull request #978 from evgeni/lsb-init-scripts

don't make sysv init scripts dependant on distribution specifics


Compare: https://github.com/lxc/lxc/compare/a14574ba8488...1bf4292e3f94


More information about the lxc-devel mailing list