# systemd unit — post-normalization outbound image push # # Intended to run only after plytixmage-onetime.service completes successfully. # Pair with an OnSuccess drop-in on the one-time service: # # sudo cp scripts/systemd/plytixmage-post-images.service /etc/systemd/system/ # sudo mkdir -p /etc/systemd/system/plytixmage-onetime.service.d # sudo cp scripts/systemd/plytixmage-onetime-post-images.conf \ # /etc/systemd/system/plytixmage-onetime.service.d/post-images.conf # sudo systemctl daemon-reload # # Run once manually: # sudo systemctl start plytixmage-post-images.service [Unit] Description=PlytixMage post-normalize outbound image push After=network-online.target plytixmage-onetime.service Wants=network-online.target [Service] Type=oneshot User=homesurplus Group=homesurplus WorkingDirectory=/home/homesurplus/PlytixMage Environment=PYTHONUNBUFFERED=1 Environment=MAGENTO_CONNECTION_IDS=1 4 Environment=SHOPIFY_CONNECTION_IDS= Environment=IMAGE_PUSH_LIMIT=10000 Environment=IMAGE_PUSH_WAIT=1 Environment=IMAGE_PUSH_FORCE=1 Environment=REQUIRE_SUCCESS_STATUS=1 # Optional: # Environment=PATH=/home/homesurplus/PlytixMage/.venv/bin:/usr/bin ExecStart=/bin/bash /home/homesurplus/PlytixMage/scripts/push_recent_images_after_normalize.sh Nice=10 TimeoutStartSec=8h StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target