How do I write a systemd unit file for hserver?

Here is a sample hserver.service file:


[Unit]
Description=SideFX Houdini License Server
Requires=network-online.target
After=network-online.target
Documentation=https://www.sidefx.com/docs/houdini/ref/utils/hserver.html

[Service]
Type=simple
ExecStart=%%INSTALL_PATH%%/hserver -d
ExecStop=/bin/kill -s QUIT $MAINPID
WorkingDirectory=%%INSTALL_PATH%%
Restart=always
RestartSec=1
StartLimitInterval=10
StartLimitBurst=5

[Install]
WantedBy=multi-user.target

[SideFX]
Version=%%VERSION%%