Unit file – example

[Unit]
Description=Babel BE service
After=network.target postgresql.service
Requires=network.target postgresql.service

[Service]
Type=forking
User=babel
Group=babel

#Environment=
#RemainAfterExit=yes

ExecStart=/opt/babel/babel/bin/openfire start
ExecStop=/opt/babel/babel/bin/openfire stop

TimeoutSec=300

[Install]
WantedBy=multi-user.target