mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-03-10 17:05:18 +00:00
services: smartdns-service-type: Add option to specify log file.
* rosenthal/services/dns.scm (smartdns-configuration): Add log-file option. (smartdns-shepherd-service): Honor it.
This commit is contained in:
parent
93fa311070
commit
37d9e02d76
@ -23,18 +23,22 @@
|
||||
"The Smartdns package.")
|
||||
(config
|
||||
(file-like (plain-file "empty" ""))
|
||||
"Configuration file for Smartdns."))
|
||||
"Configuration file for Smartdns.")
|
||||
(log-file
|
||||
(string "/var/log/smartdns.log")
|
||||
"Where the logs go."))
|
||||
|
||||
(define smartdns-shepherd-service
|
||||
(match-lambda
|
||||
(($ <smartdns-configuration> smartdns config)
|
||||
(($ <smartdns-configuration> smartdns config log-file)
|
||||
(list (shepherd-service
|
||||
(documentation "Run smartdns.")
|
||||
(provision '(smartdns dns))
|
||||
(requirement '(loopback networking))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append smartdns "/sbin/smartdns")
|
||||
"-f" "-x" "-c" #$(file-append config))))
|
||||
"-f" "-x" "-c" #$(file-append config))
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor)))))))
|
||||
|
||||
(define smartdns-service-type
|
||||
|
Loading…
Reference in New Issue
Block a user