Files
mi8-platina-linux/project/camera/libcamera-headless/platina-camera.openrc
T
Sukecz 655d0f5b49
Offline project checks / check (push) Canceled after 0s
Release 0.8.1 camera, browser audio and compact controls
2026-10-27 11:45:42 +01:00

24 lines
659 B
Plaintext

#!/sbin/openrc-run
description="Platina camera web and Home Assistant controls (capture OFF at startup)"
command="/usr/bin/python3"
command_args="/usr/lib/platina-camera/bin/serve.py --listen 0.0.0.0"
command_user="root:root"
supervisor="supervise-daemon"
pidfile="/run/platina-camera.pid"
respawn_delay=5
respawn_max=5
respawn_period=1800
output_log="/var/log/platina-camera.log"
error_log="/var/log/platina-camera.log"
depend() {
need localmount
use networkmanager
after udev-trigger
}
start_pre() {
checkpath --file --mode 0640 --owner root:root "$output_log"
checkpath --directory --mode 0700 --owner root:root /etc/platina-camera
}