Skip to content

Instantly share code, notes, and snippets.

@erichowey
Created May 8, 2023 20:42
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 erichowey/56b04687873f98dbe3d75c0c0db3f576 to your computer and use it in GitHub Desktop.
Save erichowey/56b04687873f98dbe3d75c0c0db3f576 to your computer and use it in GitHub Desktop.
InvokeAI systemd unit file
[Unit]
Description=A Stable Diffusion Toolkit
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/invokeai/
ExecStart=/opt/invokeai/.venv/bin/python /opt/invokeai/.venv/bin/invokeai --web --host 0.0.0.0 --port 8989 --root_dir /opt/invokeai
User=invokeai
Group=invokeai
Nice=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment