summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-15 16:47:12 -0500
committerJune McEnroe <june@causal.agency>2020-12-15 16:47:12 -0500
commit7769a4f6e94452719e09b8f0c3a1ecca09b55355 (patch)
tree0ea9020992d1a3dcd80cf530a493c6689a9285ce
parentRefactor unveil calls so errors can be reported properly (diff)
downloadcatsit-1.1.tar.gz
catsit-1.1.zip
Log a message when stopping a service waiting to restart 1.1
It's a little annoying to have to special-case this, but otherwise there
is no confirmation in the log that the restart won't still happen.
-rw-r--r--service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/service.c b/service.c
index 4aaad54..6718b06 100644
--- a/service.c
+++ b/service.c
@@ -270,6 +270,9 @@ void serviceSignal(struct Service *service, int signal) {
 }
 
 void serviceStop(struct Service *service) {
+	if (service->intent != Stop && service->state != Start) {
+		syslog(LOG_NOTICE, "%s[] stopped", service->name);
+	}
 	service->intent = Stop;
 	serviceSignal(service, SIGTERM);
 }
b326c83b3c0b35d472305294afee3105b3088d&follow=1'>Show list of modified files in ui-commit.cLars Hjemli 2006-12-16Reformat code to avoid excessive line lengthsLars Hjemli 2006-12-16Add cgit_free_commitinfo() and use where neededLars Hjemli 2006-12-16Simplify ui-commit.cLars Hjemli 2006-12-16Show emails and timestamps in ui-commit.cLars Hjemli 2006-12-16Teach commit parser about author/committer email + timestampLars Hjemli 2006-12-16Allow relative paths for cgit_cache_rootLars Hjemli 2006-12-16Add cache-root option to /cgit/rcLars Hjemli 2006-12-16Add argument parsing + switch for uncached operationLars Hjemli 2006-12-16Add head comment to shared.cLars Hjemli 2006-12-16Add head comment to ui-commit.cLars Hjemli 2006-12-16gitweb ripoff: set tr:hover to highligt current rowLars Hjemli 2006-12-16Make repo header a link to summary pageLars Hjemli 2006-12-16Move cgit_print_date into ui-shared, reuse in ui-summaryLars Hjemli 2006-12-16Add ui-commit.c + misc ui cleanupsLars Hjemli 2006-12-15Add a common commit parserLars Hjemli 2006-12-14Add simple pager to log pageLars Hjemli 2006-12-13Add separate makefile-rule to clear current cacheLars Hjemli 2006-12-13Remove implementation details from READMELars Hjemli 2006-12-13Small layout adjustments to summary and blob viewLars Hjemli 2006-12-13Add display of tree content w/ui-tree.cLars Hjemli 2006-12-12cache_lock: do xstrdup/free on lockfileLars Hjemli 2006-12-11Don't truncate valid cachefilesLars Hjemli 2006-12-11Move global variables + callback functions into shared.cLars Hjemli 2006-12-11Move functions for generic object output into ui-view.cLars Hjemli 2006-12-11Move log-functions into ui-log.cLars Hjemli 2006-12-11Move repo summary functions into ui-summary.cLars Hjemli 2006-12-11Move functions for repolist output into ui-repolist.cLars Hjemli 2006-12-11Move common output-functions into ui-shared.cLars Hjemli 2006-12-11Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli 2006-12-11Avoid infinite loops in caching layerLars Hjemli 2006-12-11Let 'make install' clear all cachefilesLars Hjemli 2006-12-11Fix cache algorithm loopholeLars Hjemli 2006-12-10Add version identifier in generated filesLars Hjemli 2006-12-10Add license file and copyright noticesLars Hjemli 2006-12-10Add caching infrastructureLars Hjemli