OSCam supports various command-line parameters to configure its behavior at startup.
OSCam offers extensive command-line configuration options to customize its behavior at startup. These parameters allow you to control directories, logging, debugging, and runtime behavior without modifying configuration files.
| `-t, --temp-dir <dir>` | Set temporary directory to `<dir>`.<br>Default: `/tmp/.oscam` (Linux/macOS) or OS-TMP (Cygwin) |
### Essential Options
## Startup
The most commonly used options for typical setups:
| Option | Description |
|--------|-------------|
| `-b, --daemon` | Start in the background as daemon.<br>(On STAPI/STAPI5 systems, use `-f` instead) |
| `-f, --foreground` | Start in the foreground mode.<br>(Only available on STAPI/STAPI5 systems) |
| `-B, --pidfile <pidfile>` | Create pidfile when starting. |
| `-r, --restart <level>` | Set restart level (requires WebIf):<br>• `0` - Restart disabled (exit on restart request)<br>• `1` - WebIf restart is active (default)<br>• `2` - Like 1, but also restart on segfaults |
| `-w, --wait <secs>` | Set how many seconds to wait at startup for the system clock to be set correctly.<br>Default: `60` |
```bash
# Start as background daemon with custom config
oscam -b-c /etc/oscam
## Logging
# Start with debug logging enabled
oscam -d 255
| Option | Description |
|--------|-------------|
| `-I, --syslog-ident <ident>` | Set syslog ident.<br>Default: `oscam` |
| `-S, --show-sensitive` | Do not filter sensitive info (card serials, boxids) from the logs. |
| `-d, --debug <level>` | Set debug level mask used for logging (see [Debug Levels](#debug-levels) below).<br>Default: `0` (no extra debugging) |
These options are intended for development and troubleshooting:
## Process Management
| Option | Description |
|--------|-------------|
| `-a, --crash-dump` | Write `oscam.crash` file on segfault. This option requires GDB to be installed and OSCam executable to contain debug information (run `oscam-XXXX.debug`). |