Add service for live preview

pull/182/head
Yossi 2018-04-08 16:39:52 +03:00
parent 6087251483
commit 93a30d21b4
5 changed files with 21 additions and 3 deletions

View File

@ -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

View File

@ -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

View 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

View File

@ -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

View File

@ -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