summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 18:28:20 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 18:28:20 -0400
commit8b9daf7d5db20b822fb87e2f42027cde8b38bb36 (patch)
tree8b7418b7f8538688bb0eb3b7c4d71d90dc230f9d
parentAdd reset interval after which restart interval is reset (diff)
downloadcatsit-8b9daf7d5db20b822fb87e2f42027cde8b38bb36.tar.gz
catsit-8b9daf7d5db20b822fb87e2f42027cde8b38bb36.zip
Fix resetting restart interval with explicit restart
Diffstat (limited to '')
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index fef9b00..9b156f2 100644
--- a/service.c
+++ b/service.c
@@ -217,8 +217,8 @@ void serviceStop(struct Service *service) {
 }
 
 void serviceRestart(struct Service *service) {
+	service->intent = Restart;
 	if (service->state == Start) {
-		service->intent = Restart;
 		serviceSignal(service, SIGTERM);
 	} else {
 		serviceStart(service);
e?id=a86b3024e0024f1aed128e163d361657abd0d37b&follow=1'>Rewrite Makefile once more with more organizationJune McEnroe 2019-07-27Reference png.h in bin.7June McEnroe 2019-07-27Revert "Use scheme to style HTMLs"June McEnroe This reverts commit 46237a457ff3c9a813a56f2a442c115bf8610cbc. I don't know why but I don't like it. 2019-07-27Remove scheme text linkJune McEnroe No standard base64 encoder so no way to maintain it. 2019-07-26Update Dark.terminalJune McEnroe Why are the blobs so much bigger now? 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe When? Now. 2019-07-24Remove histedit from bitJune McEnroe