Add packaged per-camera X4 wake and preview recovery
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
[Unit]
|
||||
Description=Mission Core bounded X4 Bluetooth wake
|
||||
After=bluetooth.service
|
||||
Wants=bluetooth.service
|
||||
ConditionPathExists=/var/lib/mission-core-insta360/active.path
|
||||
[Service]
|
||||
Type=simple
|
||||
Group=mission-core-node
|
||||
ExecStart=/usr/bin/python3 -I /usr/lib/mission-core-node/insta360/wake_service.py
|
||||
RuntimeDirectory=mission-core-x4-recovery
|
||||
RuntimeDirectoryMode=0750
|
||||
StateDirectory=mission-core-x4-recovery
|
||||
StateDirectoryMode=0700
|
||||
UMask=0077
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectControlGroups=yes
|
||||
RestrictSUIDSGID=yes
|
||||
RestrictAddressFamilies=AF_UNIX
|
||||
CapabilityBoundingSet=
|
||||
TasksMax=20
|
||||
MemoryMax=128M
|
||||
CPUQuota=30%
|
||||
LimitCORE=0
|
||||
TimeoutStopSec=8
|
||||
KillMode=control-group
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user