Reformat code

This commit is contained in:
Marcus Kammer 2023-11-04 15:39:53 +01:00
parent 416acd4a35
commit c997336f76

View file

@ -218,11 +218,10 @@ COMMAND is the systemctl command to execute on the service (e.g.,
(sentinel (lambda (process signal) (sentinel (lambda (process signal)
(when (memq (process-status process) '(exit signal)) (when (memq (process-status process) '(exit signal))
(message "Process: %s %s" process signal))))) (message "Process: %s %s" process signal)))))
(make-process (make-process :name process-name
:name process-name :buffer buffer
:buffer buffer :command `("ssh" ,host "sudo" "systemctl" ,command ,service)
:command `("ssh" ,host "sudo" "systemctl" ,command ,service) :sentinel sentinel)))
:sentinel sentinel)))
(defmacro mk/remote-define-systemctl-functions (&rest actions) (defmacro mk/remote-define-systemctl-functions (&rest actions)
"Dynamically create functions to interact with systemd services on a remote host. "Dynamically create functions to interact with systemd services on a remote host.