Skip to content

service reload not working #1266

@gstorme

Description

@gstorme

Describe the bug
systemctl reload defguard is not working.
The defguard process is killed, but a new one is not started.

Is a service reload supported?
If not, remove the ExecReload from the systemd unit file and only support a service restart?

To Reproduce
Execute systemctl reload defguard

Expected behavior
Defguard service is reloaded with changed configuration

Version information

  • Defguard Core version: 1.4.0-alpha2
  • Debian 12

Additional context

root@debian:~# systemctl status defguard
● defguard.service - defguard core service
     Loaded: loaded (/lib/systemd/system/defguard.service; enabled; preset: enabled)
     Active: active (running) since Wed 2025-06-25 11:44:30 CEST; 11min ago
       Docs: https://docs.defguard.net/
   Main PID: 40072 (defguard)
      Tasks: 2
     Memory: 21.8M
        CPU: 2.402s
     CGroup: /system.slice/defguard.service
             └─40072 /usr/bin/defguard

root@debian:~# systemctl reload defguard

root@debian:~# systemctl status defguard
○ defguard.service - defguard core service
     Loaded: loaded (/lib/systemd/system/defguard.service; enabled; preset: enabled)
     Active: inactive (dead) since Wed 2025-06-25 11:56:11 CEST; 10s ago
   Duration: 11min 40.983s
       Docs: https://docs.defguard.net/
    Process: 40072 ExecStart=/usr/bin/defguard (code=killed, signal=HUP)
    Process: 40188 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 40072 (code=killed, signal=HUP)
        CPU: 2.411s

Jun 25 11:56:11 debian systemd[1]: Reloading defguard.service - defguard core service...
Jun 25 11:56:11 debian systemd[1]: defguard.service: Deactivated successfully.
Jun 25 11:56:11 debian systemd[1]: Reloaded defguard.service - defguard core service.
Jun 25 11:56:11 debian systemd[1]: defguard.service: Consumed 2.411s CPU time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    Status

    Ready to release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions