Created
September 24, 2025 18:17
-
-
Save virgilvox/3630ee90a547b572381fa825fde0291e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo tee /etc/systemd/system/thistle-update.service > /dev/null << 'EOF' | |
| [Unit] | |
| Description=Thistle Update Client | |
| After=network-online.target | |
| Wants=network-online.target | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/local/bin/tuc -c /boot/tuc-config.json | |
| Restart=always | |
| RestartSec=30 | |
| RuntimeMaxSec=3600 | |
| User=root | |
| [Install] | |
| WantedBy=multi-user.target | |
| EOF | |
| # Create timer for delayed start (90 seconds after boot) | |
| sudo tee /etc/systemd/system/thistle-update.timer > /dev/null << 'EOF' | |
| [Unit] | |
| Description=Thistle Update Client Timer | |
| Requires=thistle-update.service | |
| [Timer] | |
| OnBootSec=90s | |
| Unit=thistle-update.service | |
| [Install] | |
| WantedBy=timers.target | |
| EOF | |
| # Enable and start timer (will start service after 90s boot delay) | |
| sudo systemctl daemon-reload | |
| sudo systemctl enable thistle-update.timer | |
| sudo systemctl start thistle-update.timer | |
| # Check timer and service status | |
| sudo systemctl status thistle-update.timer | |
| sudo systemctl status thistle-update.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment