• Stefy Lanza (nextime / spora )'s avatar
    Add SIGHUP signal handling to wssshc for configuration reload · e4bfac6f
    Stefy Lanza (nextime / spora ) authored
    - Implement SIGHUP signal handler that triggers configuration reload
    - Add reload_configuration() function to reload services config and password
    - Reload password from config files when SIGHUP is received
    - Reload services configuration from service files
    - Update connect_to_server() to accept services parameters for reload functionality
    - Add proper cleanup for services in main function
    
    This allows wssshc to reload its configuration without restarting:
    - Services configuration from /etc/wsssh.d/ directory
    - Password from config files
    - All changes take effect immediately without service interruption
    e4bfac6f
wssshc.c 71.3 KB