diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2019-11-16 23:33:31 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2019-11-20 21:23:19 +0200 |
| commit | 77ed06a8bf049827c45e6208475ac9527eb423ea (patch) | |
| tree | 6768bedbb0edc642413be16aa411285d71ed4a63 /gnu/services/sysctl.scm | |
| parent | 96d5a206074c126bc42e463d9b17d49dd2e49e7c (diff) | |
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.
Diffstat (limited to 'gnu/services/sysctl.scm')
| -rw-r--r-- | gnu/services/sysctl.scm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/services/sysctl.scm b/gnu/services/sysctl.scm index 5e9e6f06613..eb7a61b2a9d 100644 --- a/gnu/services/sysctl.scm +++ b/gnu/services/sysctl.scm | |||
| @@ -59,8 +59,7 @@ | |||
| 59 | (provision '(sysctl)) | 59 | (provision '(sysctl)) |
| 60 | (start #~(lambda _ | 60 | (start #~(lambda _ |
| 61 | (zero? (system* #$sysctl "--load" #$sysctl.conf)))) | 61 | (zero? (system* #$sysctl "--load" #$sysctl.conf)))) |
| 62 | (stop #~(const #t)) | 62 | (one-shot? #t)))))) |
| 63 | (respawn? #f)))))) | ||
| 64 | 63 | ||
| 65 | (define sysctl-service-type | 64 | (define sysctl-service-type |
| 66 | (service-type | 65 | (service-type |
