Hi Ludo', On Sat, May 18 2024, Ludovic Courtès wrote:
> I’ve just pushed a simple log rotation service for Shepherd: I have a patch removing rottlog from all Guix "services" that use the Shepherd's :log-file feature, which works fine. Do I need to provide a Guix "service" for the log rotation? If so, may I somehow reuse the Shepherd service definition [1] which doesn't contain any G-exps, in the Guix "service" definition, which does? This won't work: --8<---------------cut here---------------start------------->8--- (define (log-rotation-shepherd-service config) (match-record config <log-rotation-configuration> (compression calendar-event expiry size-threshold) #~((log-rotation-service #$calendar-event #:compression #$compression #:expiry #$expiry #:rotation-size-threshold #$size-threshold)))) --8<---------------cut here---------------end--------------->8--- Thank you for your help, and thanks for the recent syslog announcement! Kind regards Felix [1] https://git.savannah.gnu.org/cgit/shepherd.git/tree/modules/shepherd/service/log-rotation.scm?h=devel#n219