--service to register it on a server or a render node, or set it up yourself afterwards. On Windows you also choose the account RenderFlow runs under, an account that needs rights on your storage, so it is worth settling before you start.
A workstation does not need a service. The desktop app starts the background service at user login.
When you need it
- Dedicated render nodes that must come back after a restart or a power cut.
- Headless machines in a rack, with no monitor and no keyboard.
- Farms that shut machines down and wake them through the Scheduler or Automation.
- The server. A server that only runs during a user session is down after every reboot.
Windows
RenderFlow registers its own Windows service when you ask it to. The service starts on boot as the account you give it, and that account is granted the Log on as a service right it needs.srvctrl.exe, next to rfsv.exe in the install folder, runs the service and relaunches rfsv.exe whenever it exits, which covers a restart after a configuration change.
At install time
Add the account to the silent install:--service and no account:
--service or --service-account, the installer registers no service, and a machine that has one keeps it, with its account, through every upgrade.
On an installed machine
Open a Command Prompt or PowerShell as administrator, in the install folder:- A local account can be given by its name alone, as
--account renderfarm. - A group managed service account (
DOMAIN\name$) has no password, and is not asked for one. - In a script, set
RENDERFLOW_SERVICE_PASSWORDinstead of being asked. --no-startleaves the service stopped.
--account: it grants the right to the account the service already has.
The service account
Use a dedicated account with rights on the share and permission to run your applications. Sign in with that account on the node and open a scene by hand before trusting it with a job.Mapped drives
A Windows service runs in Session 0, which has no mapped drive letters. A scene that referencesS:\Projects\shot.max cannot be opened by the service.
- Use UNC paths in your scenes, in output paths and for the repository.
- Map the drives in RenderFlow where UNC paths are not an option. Settings → Mapped Drives stores a drive letter and the UNC path behind it. RenderFlow connects them when the service starts and before it launches a job, as the service’s account. A mapping that fails is logged, and the job then fails on the path. Check the service log when a letter does not resolve.
- Map the drive with Group Policy. A domain can map the same letter for the service’s account through Group Policy Preferences, so it is already there whenever the account logs on. This works alongside RenderFlow’s own mapping, or instead of it.
Remove
As administrator, in the install folder (.\rfsv in PowerShell):
rfsv service status shows whether a service is registered, its state, start setting and account.
Linux
The installer puts RenderFlow in place and leaves running it to you. Add--service to register it as a systemd service, or write the unit yourself.
With the installer
/etc/systemd/system/renderflow.service, enables it and starts it. A workstation gets no service, since its desktop app runs it. A machine with no role yet gets none either: set it up, then run the installer again with --service.
By hand
This is the unit--service writes. Change HOME to the home folder of the user who ran sudo ./install.sh, which is where the plugins for your applications were installed, and add what your studio needs:
/etc/systemd/system/renderflow.service
- Keep
User=rootif the machine should install the farm’s updates by itself. Under another account it renders the same, but stops at an update and waits for you to run the installer. - Keep the restart rule. RenderFlow exits to restart itself after a configuration change or an update, and relies on systemd to start it again.
- Keep
LimitNOFILE=65535on a server. The default of 1024 open files runs out before a large farm has connected. - Settings go in as
Environment=lines, with the variables listed in Silent Deployment. A proxy or a mounted repository path are the usual ones. - Mounts first. If the repository is a network mount, add it to
After=andRequires=(for exampleAfter=mnt-renderflow.mount), so RenderFlow never starts without it.
renderflow.service. Upgrading with sudo ./install.sh restarts a service of that name into the new files and leaves the unit as you wrote it.
Remove
sudo ./uninstall.sh stops and removes the service with the rest of RenderFlow. To keep RenderFlow installed and stop running it as a service:
macOS
The installer puts RenderFlow in place and leaves running it to you. Add--service to register it as a launchd daemon, or write the daemon yourself.
With the installer
/Library/LaunchDaemons/io.pulze.renderflow.plist and loads it. A workstation gets no daemon, since its desktop app runs it. A machine with no role yet gets none either: set it up, then run the installer again with --service.
By hand
This is the daemon--service writes. Change HOME and RENDERFLOW_DATA_DIR to the home folder of the user who ran sudo ./install.sh, which holds the configuration and the plugins for your applications, and add what your studio needs:
/Library/LaunchDaemons/io.pulze.renderflow.plist
- Keep it a daemon in
/Library/LaunchDaemons, which runs as root, if the machine should install the farm’s updates by itself. Under aUserNamekey or as a launch agent it renders the same, but stops at an update and waits for you to run the installer. - Keep
KeepAlive. RenderFlow exits to restart itself after a configuration change or an update, and relies on launchd to start it again. - Settings go in
EnvironmentVariables, with the variables listed in Silent Deployment.
io.pulze.renderflow. Upgrading with sudo ./install.sh reloads a daemon with that label into the new files and leaves the plist as you wrote it.
Remove
sudo ./uninstall.sh stops and removes the daemon with the rest of RenderFlow. To keep RenderFlow installed and stop running it as a daemon:
Check that it worked
On the machine:Next steps
- Silent Deployment: installing and configuring the machine
- Server and Nodes: the rest of the farm