Skip to content

Commit

Permalink
systemd: support systemctl reload diod
Browse files Browse the repository at this point in the history
Problem: diod supports runtime configuration reloading but
the systemd unit file doesn't.

Arrange to send SIGHUP to diod when an admin runs systemctl reload diod.
  • Loading branch information
garlick committed Jan 19, 2025
1 parent a621f52 commit c7b5921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/diod.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Description=9P File Server
[Service]
Type=exec
ExecStart=@X_SBINDIR@/diod
ExecReload=kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

0 comments on commit c7b5921

Please sign in to comment.