Convert foreman sysvinit script to systemd unit
The foreman RPM ships a sysvinit script for launching the WEBrick server, but this should be replaced by a systemd unit file. Note that it should be disabled when using Passenger.
Ideally we'd also add a command to replace the "service foreman restart" functionality when using Passenger. (Many bonus points if it works on Debian too.)
This'll be easier if Thin support is removed: https://github.com/theforeman/foreman-packaging/pull/257
#2 Updated by Martin Milata about 6 years ago
Note: When running Foreman under Passenger on RHEL7/CentOS7,
systemctl restart foreman (and consequently
service foreman restart) do not actually restart foreman. This is because systemd calls the sysvinit script first with
stop argument and then with
start, which do nothing if Foreman is using Passenger.