1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/waydroid/waydroid-container.initd
2021-09-09 09:31:36 +02:00

25 lines
424 B
Text

#!/sbin/openrc-run
name="Waydroid Container Manager"
description="Waydroid Container Manager"
pidfile=/run/waydroid-container.pid
command=/usr/bin/waydroid
command_args="container start"
command_args_background="-p $pidfile"
depends() {
uses net
}
stop() {
ebegin "Stopping Waydroid container..."
$supervisor $RC_SVCNAME \
--stop \
--pidfile $pidfile
$command container stop
$command session stop
eend $?
}