Skip to content

Instantly share code, notes, and snippets.

@wouitmil
Created July 21, 2023 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wouitmil/ebb4df42472d7183c6baa89f53fe82de to your computer and use it in GitHub Desktop.
Save wouitmil/ebb4df42472d7183c6baa89f53fe82de to your computer and use it in GitHub Desktop.
systemd sidefx hqueue
[Unit]
Description=Hqueue Daemon
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
#PidFile=/opt/hqueue/paster.pid
Environment="LD_LIBRARY_PATH=/opt/hqueue/lib:${LD_LIBRARY_PATH}"
Restart=on-failure
RestartSec=5s
ExecStart=/opt/hqueue/bin/python /opt/hqueue/bin/paster serve --log-file "/opt/hqueue/errors.log" /opt/hqueue/hqserver.ini start
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment