Use service log feature for robust kill/terminate
This commit is contained in:
parent
78f99637b9
commit
26d7b94837
|
@ -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
|
||||
|
|
2
stage2/01-sys-tweaks/files/camera_log_run
Executable file
2
stage2/01-sys-tweaks/files/camera_log_run
Executable file
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user