# systemd unit — post-normalization complete Shopify publish # # 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-shopify-full.service /etc/systemd/system/ # sudo mkdir -p /etc/systemd/system/plytixmage-onetime.service.d # sudo cp scripts/systemd/plytixmage-onetime-post-shopify-full.conf \ # /etc/systemd/system/plytixmage-onetime.service.d/post-shopify-full.conf # sudo systemctl daemon-reload # # Run once manually: # sudo systemctl start plytixmage-post-shopify-full.service [Unit] Description=PlytixMage post-normalize complete Shopify publish 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=SHOPIFY_CONNECTION_IDS= Environment=SHOPIFY_BATCH_SIZE=500 Environment=SHOPIFY_WAIT_TIMEOUT=7200 Environment=SHOPIFY_INCLUDE_UNASSIGNED=0 Environment=SHOPIFY_SKIP_TAXONOMY=0 Environment=SHOPIFY_SKIP_COLLECTIONS=0 Environment=REQUIRE_SUCCESS_STATUS=1 # Optional: # Environment=PATH=/home/homesurplus/PlytixMage/.venv/bin:/usr/bin ExecStart=/bin/bash /home/homesurplus/PlytixMage/scripts/push_shopify_full_after_normalize.sh Nice=10 TimeoutStartSec=12h StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target