How do i reload a configuration file using systemd managed service?



  • Where a configuration file has been changed, to get the daemon to re-read the file, traditionally done by issuing a "kill -1 <pid>". In systemd managed service do the following.

    $ sudo systemctl reload cups
    

    The systemd command essentially does the kill -1 (-HUP) for you.



© Lightnetics 2024