Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/runner-always-running-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

# Create the systemd service file
sudo bash -c 'cat > /etc/systemd/system/actions-runner.service' <<EOL
sudo bash -c 'cat > /etc/systemd/system/george-ai-actions-runner.service' <<EOL
[Unit]
Description=GitHub Actions Runner
After=network.target

[Service]
User=$(whoami)
WorkingDirectory=$HOME/actions-runner
ExecStart=/bin/bash $HOME/actions-runner/run.sh
WorkingDirectory=$HOME/gh-runners/george
ExecStart=/bin/bash $HOME/gh-runners/george/run.sh
Restart=always
RestartSec=5
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Expand All @@ -20,10 +20,10 @@ EOL

# Reload systemd, enable, and start the service
sudo systemctl daemon-reload
sudo systemctl enable actions-runner.service
sudo systemctl start actions-runner.service
sudo systemctl enable george-ai-actions-runner.service
sudo systemctl start george-ai-actions-runner.service

# Check the service status
sudo systemctl status actions-runner.service --no-pager
sudo systemctl status george-ai-actions-runner.service --no-pager

echo "Setup complete! The actions-runner service is now running."
Loading