Many new Linux versions have switched to using the systemd initialization system.  You can see if your Linux system has this by checking for /etc/systemd and the systemctl command.  If have this, you can easily create a systemd service that will run an UnForm server.  Here is an example for settting up UnForm 8:


Here is a template you can create as /etc/systemd/system/uf80d.service, updating the /path/to/unform8 to the correct location:


[Unit]
Description=UnForm 8.0 server
After=network.target

[Service]
Type=forking
User=root
PIDFile=/path/to/unform8/uf80d.pid
ExecStart=/usr/bin/uf80d start
ExecStop=/usr/bin/uf80d stop
ExecReload=/usr/bin/uf80d restart
KillMode=process
Restart=on-failure
RestartSec=42s

[Install]
WantedBy=multi-user.target


Once created, run these commands: 


chmod 644 /etc/systemd/system/uf80d.service

systemctl daemon-reload

systemctl enable uf80d