Unable to reload caddy's config with USR1

Hey, I’m running caddy 0.10.9. I am trying to reload its configuration by sending USR1 / SIGUSR1 signals to the caddy process, but sadly it doesn’t seem to even register these.

The commands which I executed:

shell@connect ~> pgrep caddy
2940

shell@connect ~> kill -s USR1 2940
shell@connect ~> pkill -USR1 caddy
shell@connect ~> pkill -SIGUSR1 2940
(1) shell@connect ~> sudo kill -USR1 2940
[sudo] password for shell:
shell@connect ~> pkill -SIGUSR1 caddy

I also tried to send the same signal through htop, but that did not help either. Caddy is running fine and still serves websites. Caddy is run by the user shell and has been invoked without any arguments.

What does the process log tell you after you signal the process? (You’ll need the -log option)

1 Like

For example:

Matt at hermes in ~/Projects/test
→ caddy -version
Caddy 0.10.9

Matt at hermes in ~/Projects/test
→ caddy -log stdout
Activating privacy features... done.
http://0.0.0.0:2015
2017/09/28 09:41:22 http://0.0.0.0:2015

From another terminal:

Matt at hermes in ~
→ pkill -SIGUSR1 caddy

In my case, it received SIGUSR1 as expected.

2017/09/28 09:41:27 [INFO] SIGUSR1: Reloading
2017/09/28 09:41:27 [INFO] Reloading
2017/09/28 09:41:27 [INFO] Reloading complete
2017/09/28 09:41:27 http: Server closed
1 Like

Ah, I figured it out. The git directive did not like that I renamed my repo url and the folder name, it complained about a mismatch. The config was not valid, basically, so it did not reload. Sorry for the trouble :slight_smile:

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.