farmcontrol-server/packaging/linux/farmcontrol-server.service
Tom Butcher b3d1457aa2
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
Refactor PDF handling and update Linux packaging
- Removed @napi-rs/canvas and pdf-to-img dependencies from package.json and bun.lock to streamline the project.
- Added PDF.js data directory configuration in the Linux service file and build scripts.
- Introduced a new pdfToImg module for rendering PDF pages to images, enhancing PDF conversion capabilities.
- Updated pdfUtils to utilize the new pdfToImg function, improving efficiency and modularity.
2026-07-28 23:01:22 +01:00

17 lines
304 B
Desktop File

[Unit]
Description=Farm Control Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/farmcontrol-server --headless
Restart=always
User=root
Group=root
Environment=NODE_ENV=production
Environment=FC_PDFJS_DATA=/usr/lib/farmcontrol-server/pdfjs-data
[Install]
WantedBy=multi-user.target