Sophos Auto Login

Home Projects Sophos Auto Login Daemon Mode

Daemon Mode

The daemon mode allows you to run the auto-login process in the background without keeping a terminal window open. This feature is only available on Unix-like systems (Linux, macOS).

Overview

When running in daemon mode:

  • The process detaches from the terminal and runs in the background.
  • All output is redirected to a log file in ~/.sophos-autologin/sophos-autologin.log.
  • A PID file is created at ~/.sophos-autologin/sophos-autologin.pid.

Usage

Starting the Daemon

python autologin.py --start --daemon

Checking Daemon Status

You can check if the daemon is running using the --status argument:

python autologin.py --status
![Daemon Status](images/status.png)
 
### Stopping the Daemon
 
```bash
python autologin.py --exit

Alternatively, you can use the following command to find and kill the process:

kill $(cat ~/.sophos-autologin/sophos-autologin.pid)