19 lines
856 B
Desktop File
19 lines
856 B
Desktop File
[Unit]
|
|
Description=ms-ai-architect weekly KB-update (Microsoft Learn freshness)
|
|
Documentation=file://{{PLUGIN_ROOT}}/scripts/kb-update/templates/README.md
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart={{NODE_BIN}} {{PLUGIN_ROOT}}/scripts/kb-update/weekly-kb-cron.mjs
|
|
WorkingDirectory={{PLUGIN_ROOT}}
|
|
StandardOutput=append:{{LOG_FILE}}
|
|
StandardError=append:{{LOG_FILE}}
|
|
Environment=PATH=/usr/local/bin:/usr/bin:/bin
|
|
# No User= here; the unit is installed under `systemctl --user` so it
|
|
# inherits the invoking user's identity. Running under the user manager
|
|
# keeps the contract "fires while user is logged in" symmetric across
|
|
# the three platforms (launchd LoginItem, systemd --user, Windows
|
|
# InteractiveToken). Switching to system-wide service+sudo would
|
|
# diverge from that contract — do not do that here.
|