Thanks, Joe. I've been using those Daniel
Nashed's scripts for years and I agree. Very good stuff. The root issue
in this case was, however, that in RHEL 7, unless you are very careful,
systemd will kill Domino on OS shutdown instead of shutting it down properly
according to the script.
This is the case whether you install it with chkconfig or call it from
one of the new-fangled service files in systemd.
Through painstaking trial and error, I've stumbled upon the correct combination
of directives in the systemd service file. A systemd guru could probably
improve upon this, but the basic, everyday functionality is there, and
most importantly, the databases will not crash and have to go through recovery
when Domino starts back up again. "domino_script" comes from
the Nashcom
website you mentioned earlier, but the real magic in a RHEL 7 scenario
are the directives, "KillMode=process" and "RemainAfterExit=yes":
[Unit]
Description=IBM Domino Server
Documentation=http://www-947.ibm.com/support/entry/portal/product/lotus/ibm_notes
After=syslog.target network.target
[Service]
Type=simple
User=notes
LimitNOFILE=60000
ExecStart=/opt/ibm/domino/bin/domino_script start
ExecStop=/opt/ibm/domino/bin/domino_script stop
TimeoutSec=300
KillMode=process
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target