blob: 6dc5bebcd5bb918e15d705740e371396cf6b0b15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/sbin/openrc-run
supervisor=supervise-daemon
name="Anbox container manager"
command=/usr/bin/anbox
command_args="container-manager --daemon --privileged --data-path=/var/lib/anbox"
depend() {
need localmount sysfs cgroups fuse
after firewall
}
start_pre() {
# that's all you need to avoid the lxc dependency
checkpath --directory /usr/lib/lxc
checkpath --directory /usr/lib/lxc/rootfs
modprobe loop
modprobe tun
/usr/share/anbox/anbox-bridge.sh start
}
stop_post() {
# ideally, we would stop it _after_ shutting down
# the container manager.
/usr/share/anbox/anbox-bridge.sh stop
}
|