[#action-service]
= Restart a systemd service

:systemd: Easy
:container: Not really possible to do.
include::partial$action_examples/actionHeader.adoc[]

[source,yaml]
....
actions:
  - title: Start httpd
    shell: systemctl start httpd

  - title: Stop httpd
    shell: systemctl stop httpd

  - title: Restart httpd
    shell: systemctl restart httpd

  # https://docs.olivetin.app/action-ssh.html
  - title: Restart httpd on server 1
    shell: ssh root@server1 'service httpd restart'
....

