From b5d168f5532718841d051ccad65b7ba4bc5a52a0 Mon Sep 17 00:00:00 2001 From: girst Date: Wed, 10 Mar 2021 15:23:15 +0100 Subject: [PATCH] fix port80 auto-restart --- config/subscriptions-port80.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/subscriptions-port80.service b/config/subscriptions-port80.service index 92f937d..8022f7e 100644 --- a/config/subscriptions-port80.service +++ b/config/subscriptions-port80.service @@ -8,7 +8,8 @@ Environment=DOMAIN=subscriptions.gir.st Type=simple ExecStart=/usr/bin/nc -lkc 'read method path http; printf "HTTP/1.1 308 Moved\r\nLocation: https://${DOMAIN}%%s\r\n\r\n" "$path"' 80 -Restart=always # NOTE^: must to escape % in ExecStart, or systemd replaces %s with $SHELL +# NOTE^: must to escape % in ExecStart, or systemd replaces %s with $SHELL +Restart=always [Install] WantedBy=multi-user.target -- 2.39.3