summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-17 11:33:47 +0200
committerErich Eckner <git@eckner.net>2019-09-17 11:33:47 +0200
commitb8be1dbddd3b6c9415a8de1750bc05fd2d94fca2 (patch)
tree5c24b858f0a1139ebce6dcea7a05c6dac81d43be
parent20f25e83dcd4e7fbf34aaf0978dd4fe34b1dee8f (diff)
downloadshutdownasap-b8be1dbddd3b6c9415a8de1750bc05fd2d94fca2.tar.xz
shutdownasap.conf: doalogwatch by default right before shutdown
-rwxr-xr-xshutdownasap.conf.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/shutdownasap.conf.in b/shutdownasap.conf.in
index 3795467..cfd9f91 100755
--- a/shutdownasap.conf.in
+++ b/shutdownasap.conf.in
@@ -32,5 +32,8 @@ beforeWatchHook() {
# hook to execute before shutting down
beforeShutDownHook() {
+ if command -v doalogwatch >/dev/null; then
+ doalogwatch
+ fi
true
}