4
# Provides: irkerhook-lxc
5
# Required-Start: $remote_fs
6
# Required-Stop: $remote_fs
9
# Default-Start: 2 3 4 5
11
# Short-Description: irkerhook-lxc
12
# Description: irkerhook-lxc
21
if [ ! -x /usr/bin/irkerhook-lxc ] || [ ! -x /usr/bin/irkerd ]
26
for _FILE in /etc/default/irkerhook-lxc /etc/default/irkerhook-lxc.d/*
34
if [ "${IRK_ENABLED}" != "true" ]
39
. /lib/lsb/init-functions
43
log_daemon_msg "Starting irkerhook-lxc"
47
irkerhook-lxc "\x0312$(hostname -f):\x03 host system \x0303started\x03 (linux ${_KERNEL})"
51
log_daemon_msg "Stopping irkerhook-lxc"
53
_UPTIME="$(uptime | sed -e 's|.*up ||' -e 's|,.*||')"
54
irkerhook-lxc "\x0312$(hostname -f):\x03 host system \x0304stopped\x03 (uptime ${_UPTIME})"
62
log_success_msg "Usage: ${0} {start|stop}"