[Unit] Description=Zorruno Docker backup MQTT command listener After=network-online.target docker.service Wants=network-online.target [Service] Type=simple # Root is required because the listener launches a pipeline that stops and # starts Docker Compose projects and reads all project data. User=root WorkingDirectory=/backupdockerscripts ExecStart=/backupdockerscripts/bin/mqtt-trigger-listener.sh Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target