# systemd unit — push remapped shopping_* attrs + sample SKUs + images # # Install (on the PlytixMage app server): # sudo cp scripts/systemd/plytixmage-shopping-attrs-images.service /etc/systemd/system/ # sudo cp scripts/systemd/plytixmage-shopping-attrs-images.timer /etc/systemd/system/ # sudo systemctl daemon-reload # sudo systemctl enable --now plytixmage-shopping-attrs-images.timer # systemctl list-timers | grep plytixmage # journalctl -u plytixmage-shopping-attrs-images.service -f # # Run once immediately: # sudo systemctl start plytixmage-shopping-attrs-images.service # # Sample smoke only (no full catalog attr/image pass): # sudo systemctl set-environment SAMPLE_ONLY=1 # sudo systemctl start plytixmage-shopping-attrs-images.service # sudo systemctl unset-environment SAMPLE_ONLY # # If magento_worker is already a systemd service, set RUN_WORKER=0 below. [Unit] Description=PlytixMage Magento shopping_* attrs + sample + images push After=network-online.target Wants=network-online.target [Service] Type=oneshot User=homesurplus Group=homesurplus WorkingDirectory=/home/homesurplus/PlytixMage Environment=PYTHONUNBUFFERED=1 Environment=MAGENTO_CONNECTION_IDS=4 1 Environment=DRY_RUN=0 Environment=RUN_WORKER=1 Environment=SAMPLE_LIMIT=25 Environment=RUN_SAMPLE=1 Environment=RUN_ATTR_PUSH=1 Environment=RUN_PRODUCTS_FORCE=1 Environment=RUN_IMAGE_PUSH=1 Environment=PRODUCT_PUSH_LIMIT=10000 Environment=IMAGE_PUSH_LIMIT=10000 Environment=WAIT_TIMEOUT=21600 # Optional venv: # Environment=PATH=/home/homesurplus/PlytixMage/.venv/bin:/usr/bin ExecStart=/bin/bash /home/homesurplus/PlytixMage/scripts/push_shopping_attrs_and_images.sh Nice=10 TimeoutStartSec=16h StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target