services: clash: Support Clash.Meta kernel.

* rosenthal/services/child-error.scm (clash-shepherd-service)[start]: Support
Clash.Meta kernel.
pull/2/head
Hilton Chain 1 year ago
parent 6673d31eee
commit 417dd04e82
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
  1. 8
      rosenthal/services/child-error.scm

@ -91,7 +91,13 @@
(provision '(clash)) (provision '(clash))
(requirement '(loopback networking)) (requirement '(loopback networking))
(start #~(make-forkexec-constructor (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) "-d" #$data-directory)
#:user "clash" #:user "clash"
#:group "clash" #:group "clash"

Loading…
Cancel
Save