services: sysctl: Make service one-shot.

* gnu/services/sysctl.scm (sysctl-shepherd-service): Adjust shepherd
service to use the 'one-shot?' keyword. Remove 'stop' command. Remove
'respawn' option.
This commit is contained in:
Efraim Flashner 2019-11-16 23:33:31 +02:00
parent 96d5a20607
commit 77ed06a8bf
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -59,8 +59,7 @@ (define sysctl-shepherd-service
(provision '(sysctl))
(start #~(lambda _
(zero? (system* #$sysctl "--load" #$sysctl.conf))))
(stop #~(const #t))
(respawn? #f))))))
(one-shot? #t))))))
(define sysctl-service-type
(service-type