Systemd Service
Create config file
Step 1: Use flamenco-manager.yaml to specify the Blender executable path. See Flamenco Setup Guide for ideas or the official documentation on Flamenco Manager Configuration.
Create systemd service
Step 2: Create a systemd service so that the Flamenco Manager starts on RaspPi startup.
Step 2a: Create a system service file at /lib/systemd/system/flamenco-manager.service
on RaspPi
sudo nano /lib/systemd/system/flamenco-manager.service
[Unit]
Description=Start Flamenco Manager on boot
After=multi-user.target
[Service]
ExecStart=/home/pi/flamenco-manager
User=pi
WorkingDirectory=/home/pi
[Install]
WantedBy=multi-user.target
Step 2b: Install system service
sudo systemctl daemon-reload
sudo systemctl enable flamenco-manager.service
You should see it setup symlinks which will be used on startup…
Created symlink /etc/systemd/system/multi-user.target.wants/flamenco-manager.service → /lib/systemd/system/flamenco-manager.service.
Test system service
Step 3: Start the service manually to see if it runs successfully…
sudo systemctl start flamenco-manager.service
Step 4: You can check the service is running successfully by inspecting the systemd service…
sudo systemctl start flamenco-manager.service
● flamenco-manager.service - Start Flamenco Manager on boot
Loaded: loaded (/lib/systemd/system/flamenco-manager.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-05-23 01:12:49 BST; 4s ago
Main PID: 3576 (flamenco-manage)
Tasks: 9 (limit: 779)
CPU: 743ms
CGroup: /system.slice/flamenco-manager.service
└─3576 /home/pi/flamenco-manager
May 23 01:12:49 gateway flamenco-manager[3576]: 2023-05-23T01:12:49+01:00 INF shaman: opening file store storageDir=/home/pi/Downloads/flamenco/file-store
May 23 01:12:49 gateway flamenco-manager[3576]: 2023-05-23T01:12:49+01:00 INF opening checkout directory checkoutDir=/home/pi/Downloads/flamenco/jobs
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF serving job-specific files directly from disk onDisk=/home/pi/flamenco-manager-st>
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF UPnP/SSDP advertisement starting
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF sleep scheduler starting checkInterval=1m0s
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF TimeoutChecker: starting up checkInterval=1m0s initialSleep=5m0s taskTimeout=10m0s wo>
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF possble URL at which to reach Flamenco Manager count=3
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF - http://RASP-IP-ADDRESS:8080/
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF - http://127.0.0.1:8080/
May 23 01:12:50 gateway flamenco-manager[3576]: 2023-05-23T01:12:50+01:00 INF - http://[::1]:8080/