Restart a systemd service

Installation type Difficulty to do this

Running as a Systemd service

Easy

Running in a container

Not really possible to do.

Example config.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'