Restart a systemd service

Installation type Difficulty to do this

Running as a Systemd service


Running in a container

Not really possible to do.

Example config.yaml

  - title: Start httpd
    shell: systemctl start httpd

  - title: Stop httpd
    shell: systemctl stop httpd

  - title: Restart httpd
    shell: systemctl restart httpd

  - title: Restart httpd on server 1
    shell: ssh root@server1 'service httpd restart'