Elevate to root, do not sudo the command
echo "Stopping runner service..." && systemctl stop runner && echo "Stopping lipstick service..." && systemctl stop lipstick && echo "Starting lipstick service..." && systemctl start lipstick && echo "Waiting for 3 seconds..." && sleep 3 && echo "Checking the status of the lipstick service..." && systemctl status lipstick && echo "Press any key to continue to start the runner service..." && read -n 1 -s -r -p "" && echo "Starting runner service..." && systemctl start runner && echo "All services have been updated."
Wait for the message Press any key to continue to start the runner service... and inspect the status before proceeding.
Here is the breakdown of the one-line:
1. Stopping the Runner**: "Stopping runner service..."
2. Stopping the Lipstick**: "Stopping lipstick service..."
3. Starting Lipstick**: "Starting lipstick service..."
4. Waiting 3 Seconds**: "Waiting for 3 seconds..." followed by a sleep period.
5. Checking Status**: "Checking the status of the lipstick service..." displays the output of the status command.
6. User Prompt**: "Press any key to continue to start the runner service..." waits for user input.
7. Starting Runner**: "Starting runner service..."
8. Completion message**: "All services have been updated."