disown

All posts tagged disown by Linux Bash
  • Posted on
    Featured Image
    The article provides a guide on creating a Linux daemon that can resist termination by the `SIGHUP` signal, typically sent when a session logs out. It details the use of `nohup` and `disown` commands to prevent daemons from ending with the session. Starting with `nohup` to ignore hangup signals and appending `&` for background execution, followed by `disown` to eliminate the job from the shell's job table, ensures the daemon persists post-logout, ideal for continuous system tasks.
  • Posted on
    Featured Image
    The blog "Mastering Job Control in Bash with `disown -r`" explores using the `disown` command in Bash, particularly the `-r` option for managing only running jobs. It demonstrates how `disown` detaches processes from the shell, allowing them to continue independently, preventing accidental termination if the shell exits. The article offers usage examples, a demo script, and additional resources for deepening understanding of job control in Bash environments.