Add service for live preview
This commit is contained in:
parent
6087251483
commit
93a30d21b4
|
@ -11,6 +11,7 @@ install -m 644 files/lib_udev_hwclock-set ${ROOTFS_DIR}/lib/udev/hwclock-set
|
|||
install -m 644 files/systemctl/ble.service ${ROOTFS_DIR}/lib/systemd/system/ble.service
|
||||
install -m 644 files/systemctl/record.service ${ROOTFS_DIR}/lib/systemd/system/record.service
|
||||
install -m 644 files/systemctl/ws.service ${ROOTFS_DIR}/lib/systemd/system/ws.service
|
||||
install -m 644 files/systemctl/live.service ${ROOTFS_DIR}/lib/systemd/system/live.service
|
||||
|
||||
on_chroot << EOF
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Description=Control record proccess in your Dride
|
||||
Description=Control the BLE service of your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
|
|
17
stage2/06-dride-base/files/systemctl/live.service
Normal file
17
stage2/06-dride-base/files/systemctl/live.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Control the live mode service of your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
ExecStart=/opt/vc/bin/raspivid -t 0 -w 640 -h 480 -fps 25 -l -o tcp://0.0.0.0:3333
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Description=Control record proccess in your Dride
|
||||
Description=Control the Record service of your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Description=Control record proccess in your Dride
|
||||
Description=Control the web service service of your Dride
|
||||
Documentation=https://dride.io/documentation
|
||||
After=network.target
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user