From 8f5b509eedf8daca392c3dafd70e12c727ce8117 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Thu, 29 Oct 2026 21:16:52 -0400 Subject: [PATCH] remove old services, now superceded --- profile/profile-stats.service | 21 --------------------- profile/profile-stats.timer | 18 ------------------ renovate/config.js | 33 --------------------------------- renovate/renovate.service | 34 ---------------------------------- renovate/renovate.timer | 15 --------------- 5 files changed, 121 deletions(-) delete mode 100644 profile/profile-stats.service delete mode 100644 profile/profile-stats.timer delete mode 100644 renovate/config.js delete mode 100644 renovate/renovate.service delete mode 100644 renovate/renovate.timer diff --git a/profile/profile-stats.service b/profile/profile-stats.service deleted file mode 100644 index 3bb81c2..0000000 --- a/profile/profile-stats.service +++ /dev/null @@ -1,21 +0,0 @@ -# lives at ~/.config/systemd/user/profile-stats.service - -# User-level systemd service to run update_profile.py -# Configuration is via ~/.config/profile-stats.env, no in-file path edits needed. -# Create that file with one line: -# REPO_PATH=/absolute/path/to/this/repo -# Then run: -# systemctl --user daemon-reload -[Unit] -Description=Run update_profile.py (profile stats updater) -OnFailure=notify-gitea-failure@%n.service - -[Service] -Type=oneshot -EnvironmentFile=%h/.config/profile-stats.env -ExecStartPre=/usr/bin/nm-online -q -ExecStartPre=/bin/bash -c 'for i in {1..30}; do getent hosts tildegit.org && exit 0; sleep 1; done; exit 1' -ExecStart=/bin/bash -lc 'cd ${REPO_PATH} && uv run language_stats.py' - -[Install] -WantedBy=default.target diff --git a/profile/profile-stats.timer b/profile/profile-stats.timer deleted file mode 100644 index 735cd08..0000000 --- a/profile/profile-stats.timer +++ /dev/null @@ -1,18 +0,0 @@ -# lives at ~/.config/systemd/user/profile-stats.timer - -# User-level systemd timer that "catches up" missed runs if the machine was off. -[Unit] -Description=Schedule update_profile.py with catch-up if missed - -[Timer] -# Change this to your desired schedule; examples: -# OnCalendar=daily -# OnCalendar=Mon..Fri 09:00 -# See man systemd.time for syntax. -OnCalendar=daily -Timezone=America/New_York -Persistent=true -Unit=profile-stats.service - -[Install] -WantedBy=timers.target diff --git a/renovate/config.js b/renovate/config.js deleted file mode 100644 index 440344b..0000000 --- a/renovate/config.js +++ /dev/null @@ -1,33 +0,0 @@ -// lives at /etc/renovate/config.js -// token goes in the same directory - -module.exports = { - platform: 'gitea', - endpoint: 'https://tildegit.org/api/v1/', - token: process.env.RENOVATE_TOKEN, - // repositories: ['MarkEEaton/teams-bot'], - // Or use autodiscover to find all repos - autodiscover: true, - - enabledManagers: ['npm', 'nodenv', 'pip_requirements', 'pip_setup', 'poetry', 'pipenv', 'pep621'], - // Disable GitHub-specific features - fetchReleaseNotes: false, - githubTokenWarn: false, - - // Only use npm registry, PyPI, etc. - don't query GitHub - hostRules: [ - { - hostType: 'github', - enabled: false, - } - ], - - // this is so that renovate doesn't think that python-version is a dependency - packageRules: [ - { - // Ignore Python version updates - matchDatasources: ['python-version'], - enabled: false, - } - ], -}; diff --git a/renovate/renovate.service b/renovate/renovate.service deleted file mode 100644 index ee2f5be..0000000 --- a/renovate/renovate.service +++ /dev/null @@ -1,34 +0,0 @@ -[Unit] -Description=Renovate Bot -After=network-online.target -Wants=network-online.target - -[Service] -Type=oneshot -User=renovate -Group=renovate -WorkingDirectory=/var/lib/renovate -# /snap/bin is included first in the PATH because I needed a more up to -# date node.js than the system had, so I installed the newer version via -# snap. This path points to that first. -Environment="PATH=/snap/bin:/usr/local/bin:/usr/bin:/bin" -# load the token from the environment -EnvironmentFile=/etc/renovate/token-env -Environment="RENOVATE_CONFIG_FILE=/etc/renovate/config.js" -Environment="GIT_AUTHOR_NAME=Renovate Bot" -Environment="GIT_AUTHOR_EMAIL=MarkEEaton@noreply.tildegit.org" -Environment="GIT_COMMITTER_NAME=Renovate Bot" -Environment="GIT_COMMITTER_EMAIL=MarkEEaton@noreply.tildegit.org" -# use the snap version of npx -ExecStart=/snap/bin/npx renovate -# Logging -StandardOutput=journal -StandardError=journal -SyslogIdentifier=renovate - -[Install] -WantedBy=multi-user.target - -[Unit] -Description=Renovate dependency updates -OnFailure=notify-gitea-failure@%n.service diff --git a/renovate/renovate.timer b/renovate/renovate.timer deleted file mode 100644 index de15d60..0000000 --- a/renovate/renovate.timer +++ /dev/null @@ -1,15 +0,0 @@ -# lives at /etc/systemd/system/renovate.timer - -[Unit] -Description=Run Renovate Bot periodically -Requires=renovate.service - -[Timer] -# Run every 6 hours -OnCalendar=00/6:00:00 -# Run 5 minutes after boot if we missed a scheduled run -OnBootSec=5min -Persistent=true - -[Install] -WantedBy=timers.target