18 lines
715 B
SYSTEMD
18 lines
715 B
SYSTEMD
|
|
# User-level oneshot: one check -> fetch -> verify -> build -> publish pass.
|
||
|
|
# Install: see docs/SPEC.md > Scheduling.
|
||
|
|
#
|
||
|
|
# WorkingDirectory matters: packages.d/, state/ and work/ are all resolved
|
||
|
|
# relative to the cwd, so this must be the main checkout, not a worktree.
|
||
|
|
# The binary is the release build in that same checkout (`cargo build
|
||
|
|
# --release`), so a rebuild is what picks up code changes.
|
||
|
|
[Unit]
|
||
|
|
Description=pkgwatch: check tracked packages for new upstream releases
|
||
|
|
OnFailure=pkgwatch-failure.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=oneshot
|
||
|
|
WorkingDirectory=%h/dev/pkgwatch
|
||
|
|
ExecStart=%h/dev/pkgwatch/target/release/pkgwatch
|
||
|
|
# Builds (makepkg, large Go/Rust binaries) can legitimately take a while.
|
||
|
|
TimeoutStartSec=30min
|