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.master
parent
96d5a20607
commit
77ed06a8bf
|
@ -59,8 +59,7 @@
|
||||||
(provision '(sysctl))
|
(provision '(sysctl))
|
||||||
(start #~(lambda _
|
(start #~(lambda _
|
||||||
(zero? (system* #$sysctl "--load" #$sysctl.conf))))
|
(zero? (system* #$sysctl "--load" #$sysctl.conf))))
|
||||||
(stop #~(const #t))
|
(one-shot? #t))))))
|
||||||
(respawn? #f))))))
|
|
||||||
|
|
||||||
(define sysctl-service-type
|
(define sysctl-service-type
|
||||||
(service-type
|
(service-type
|
||||||
|
|
Reference in New Issue