void-packages/srcpkgs/lxd-lts/files/lxd/run

10 lines
246 B
Plaintext
Raw Normal View History

#!/bin/sh
_systemd_cgrp="/sys/fs/cgroup/systemd"
if [ ! -d ${_systemd_cgrp} ]; then
mkdir ${_systemd_cgrp}
fi
if ! mountpoint -q "${_systemd_cgrp}"; then
mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp}
fi
exec lxd --group lxd 2>&1