Missing WorkingDirectory in systemd unit #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Because the tool is deployed by copying files to
/opt/pdf-ocr-hotfolder/rather than being installed as a Python package, the service fails to find thepdf_ocr_hotfoldermodule unlessWorkingDirectory=/opt/pdf-ocr-hotfolderis explicitly set in the systemd unit.Suggested Fix:
Add
WorkingDirectory=/opt/pdf-ocr-hotfolderto the systemd template unit.