]> git.ipfire.org Git - thirdparty/lxc.git/commit
don't make sysv init scripts dependant on distribution specifics 978/head
authorEvgeni Golov <evgeni@debian.org>
Fri, 15 Apr 2016 18:45:09 +0000 (20:45 +0200)
committerEvgeni Golov <sargentd@die-welt.net>
Fri, 15 Apr 2016 19:23:57 +0000 (21:23 +0200)
commit3083782cf871b7278f4643414bc060830659f6f4
tree7a5257928f8a344ce53152ed9e2962df73652a63
parent85145234e79359632c3908793725aa1eee6c9d9f
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@debian.org>
config/init/sysvinit/lxc-containers.in
config/init/sysvinit/lxc-net.in