1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Example configuration for proc-daemon
# This file demonstrates all available configuration options
# Daemon identification
= "my-production-daemon"
# Logging configuration
[]
= "info" # trace, debug, info, warn, error
= false # Enable JSON structured logging
= true # Enable colored output (ignored for JSON)
= "/var/log/my-daemon.log" # Optional log file
= 104857600 # 100MB log rotation
= 5 # Keep 5 rotated files
# Shutdown behavior
[]
= 30000 # 30 seconds graceful shutdown
= 45000 # 45 seconds before force shutdown
= 60000 # 60 seconds before SIGKILL (Unix)
# Performance tuning
[]
= 0 # 0 = auto-detect CPU cores
= false # Pin threads to CPU cores
= 1048576 # 1MB memory pool
= false # NUMA awareness
= true # Enable lock-free optimizations
# Monitoring and health checks
[]
= true # Collect performance metrics
= 1000 # Metrics collection interval
= true # Track CPU/memory usage
= true # Enable subsystem health checks
= 5000 # Health check interval
# Optional settings
= "/var/lib/my-daemon" # Working directory
= "/var/run/my-daemon.pid" # PID file location
= false # Enable config hot-reloading