services: clash: Support Clash.Meta kernel.

* rosenthal/services/child-error.scm (clash-shepherd-service)[start]: Support
Clash.Meta kernel.
This commit is contained in:
Hilton Chain 2023-11-03 12:56:14 +08:00
parent 6673d31eee
commit 417dd04e82
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -91,7 +91,13 @@
(provision '(clash))
(requirement '(loopback networking))
(start #~(make-forkexec-constructor
(list #$(file-append clash "/bin/clash")
(list (let ((clash-meta-cmd
#$(file-append clash "/bin/clash.meta"))
(clash-cmd
#$(file-append clash "/bin/clash")))
(if (file-exists? clash-meta-cmd)
clash-meta-cmd
clash-cmd))
"-d" #$data-directory)
#:user "clash"
#:group "clash"