aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-12-21 12:44:34 +0100
committerOscar Najera <hi@oscarnajera.com>2024-12-21 12:44:34 +0100
commitf90309513e8e2b86e7412e8a972eca4b9846e39f (patch)
tree9ecbc91acf828f97d542db1bb4e5a644fbf0e203 /config
parent135577a87247fff52b925afcd4a79b5c0d4f87d1 (diff)
downloaddotfiles-f90309513e8e2b86e7412e8a972eca4b9846e39f.tar.gz
dotfiles-f90309513e8e2b86e7412e8a972eca4b9846e39f.tar.bz2
dotfiles-f90309513e8e2b86e7412e8a972eca4b9846e39f.zip
shepherd log rotation
Diffstat (limited to 'config')
-rw-r--r--config/shepherd/init.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/shepherd/init.scm b/config/shepherd/init.scm
index 6b16623..60f67c7 100644
--- a/config/shepherd/init.scm
+++ b/config/shepherd/init.scm
@@ -2,6 +2,7 @@
(use-modules ((ice-9 ftw) #:select (scandir))
(shepherd service)
+ (shepherd service log-rotation)
(srfi srfi-26))
;; Load all the files in the directory 'init.d' with a suffix '.scm'.
@@ -14,7 +15,12 @@
;; Send shepherd into the background
(perform-service-action root-service 'daemonize)
+(register-services
+ (list
+ ;; Create a service that rotates log files once a week.
+ (log-rotation-service)))
+
;; Services to start when shepherd starts:
;; Add the name of each service that should be started to the list
;; below passed to 'for-each'.
-(start-in-the-background '(habit-logs roam-semantic-db))
+(start-in-the-background '(habit-logs roam-semantic-db log-rotation))