Use service log feature for robust kill/terminate
This commit is contained in:
@@ -120,8 +120,10 @@ install -m 755 extfiles/rpiConfigServer "${ROOTFS_DIR}/usr/local/sbin/configServ
|
||||
install -m 755 extfiles/netconsoleTee "${ROOTFS_DIR}/usr/local/bin/"
|
||||
|
||||
install -v -d "${ROOTFS_DIR}/service/camera"
|
||||
install -v -d "${ROOTFS_DIR}/service/camera/log"
|
||||
|
||||
install -m 755 files/camera_run "${ROOTFS_DIR}/service/camera/run"
|
||||
install -m 755 files/camera_log_run "${ROOTFS_DIR}/service/camera/log/run"
|
||||
|
||||
on_chroot << EOF
|
||||
cd /service/camera && rm -f supervise && ln -s /tmp/camera-supervise supervise
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /usr/local/bin/netconsoleTee -u
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
sleep 1
|
||||
cd /home/pi
|
||||
exec pgrphack /usr/local/bin/setuidgids pi ./runCamera 2>&1 | /usr/local/bin/netconsoleTee -u
|
||||
exec 2>&1
|
||||
exec pgrphack /usr/local/bin/setuidgids pi ./runCamera
|
||||
|
||||
Reference in New Issue
Block a user