mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
services: ganeti: Update to Shepherd 1.0 interface.
* gnu/services/ganeti.scm (shepherd-wconfd-force-start-action)[procedure]: Use ‘enable-service’ and ‘perform-service-action’ instead of ‘action’, which was deprecated in 0.10.x and replaced in 1.0. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I2ba7d973b95f17f6ce093185fec7b246cf427be9
This commit is contained in:
@@ -329,18 +329,17 @@ related to the configuration of a Ganeti cluster.")))
|
|||||||
"Forcefully start wconfd even on non-master nodes (dangerous!).")
|
"Forcefully start wconfd even on non-master nodes (dangerous!).")
|
||||||
(procedure #~(lambda _
|
(procedure #~(lambda _
|
||||||
(format #t "Forcefully starting the wconfd daemon...~%")
|
(format #t "Forcefully starting the wconfd daemon...~%")
|
||||||
(action 'ganeti-wconfd 'enable)
|
(enable-service (lookup-service 'ganeti-wconfd))
|
||||||
(dynamic-wind
|
(call-with-output-file #$%wconfd-force-node-hint
|
||||||
(lambda ()
|
(const #t))
|
||||||
(false-if-exception
|
(catch #t
|
||||||
(call-with-output-file #$%wconfd-force-node-hint
|
|
||||||
(lambda (port)
|
|
||||||
(const #t)))))
|
|
||||||
(lambda ()
|
|
||||||
(action 'ganeti-wconfd 'restart))
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
(perform-service-action (lookup-service 'ganeti-wconfd)
|
||||||
|
'restart)
|
||||||
|
(delete-file #$%wconfd-force-node-hint))
|
||||||
|
(lambda _
|
||||||
(delete-file #$%wconfd-force-node-hint)))
|
(delete-file #$%wconfd-force-node-hint)))
|
||||||
#t))))
|
#t))))
|
||||||
|
|
||||||
(define ganeti-wconfd-service
|
(define ganeti-wconfd-service
|
||||||
(match-lambda
|
(match-lambda
|
||||||
|
|||||||
Reference in New Issue
Block a user