Reformat code
This commit is contained in:
parent
416acd4a35
commit
c997336f76
1 changed files with 4 additions and 5 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue