Build a tiny mock service named homebridge that runs as a background process and can be started via the command /app/homebridge with arbitrary arguments (the test passes -D, which should be accepted no-ops).
What it should do:
When executed as /app/homebridge (with any args), it should start a long-running process whose process name is "homebridge".
It must not exit immediately; it should stay alive for at least a short period (the verifier will check it remains running after about 10 seconds).
It should gracefully terminate on termination signals (e.g., when pkill homebridge is issued by the verifier).
It may print lightweight logs to stdout/stderr, but logging is optional. It must not crash or exit unexpectedly.
Inputs and outputs:
Input: any command-line arguments (the test will pass -D).
Output: optional log messages; the key outcome is that a process named "homebridge" remains running for several seconds and can be killed by pkill.
File locations and naming:
Place the executable in /app/ with the exact name homebridge, i.e., /app/homebridge.
Ensure the file is executable (chmod +x) and accessible in the environment where the test runs.
The implementation should be self-contained (no external dependencies required beyond standard system tools).
Notes for correctness (without exposing test logic):
The running process must present itself under the expected process name to be discoverable by the verifier’s process checks.
The program should not crash on encountering typical command-line flags and should remain alive long enough for the verification steps.