services: smartdns: Remove log-file option.

It's already configured in the config flie.

* rosenthal/services/dns.scm (smartdns-configuration)[log-file]: Remove field.
(smartdns-shepherd-service): Adjust MATCH-LAMBDA.
[start]: Remove "-x" option.
<#:log-file>: Remove field.
This commit is contained in:
Hilton Chain committed 2023-07-07 14:57:36 +08:00
1 parent b810c93083
commit b717b87fcd
1 file changed
+3 -7
+3 -7
View File
@@ -23,22 +23,18 @@
"The Smartdns package.")
(config
(file-like (plain-file "empty" ""))
"Configuration file for Smartdns.")
(log-file
(string "/var/log/smartdns.log")
"Where the logs go."))
"Configuration file for Smartdns."))
(define smartdns-shepherd-service
(match-lambda
(($ <smartdns-configuration> smartdns config log-file)
(($ <smartdns-configuration> smartdns config)
(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))
#:log-file #$log-file))
"-f" "-c" #$(file-append config))))
(stop #~(make-kill-destructor)))))))
(define smartdns-service-type