Sample Evergreen startup scripts for use on systemd based distributions
Included are systemd service units for opensrf/evergreen, clark-kent, oils-sip, oils-z3950, and websocketd. As defined all included services require opensrf.
Copy desired .service files to /etc/systemd/system/ and then run systemctl daemon-reload as root. To enable services to run at startup, run systemctl enable .
Several things that can be specified on the command line are now changed via drop-in files. For example, to change the lockfile used by clark-kent.service, create the directory /etc/systemd/system/clark-kent.service.d/ and put an override.conf file in it with the value Environment=LOCKF=/some/other/value. See the Environment entries in each service file to see what can be customized.
When using oils_ctl.sh to start the SIP or Z39.50 servers you can specify a pid file location. Because this is primarily only used by oils_ctl.sh to (inaccurately, in the case of a crash) determine if a service is running, these pid files aren't used with systemd and the specfied services started directly. Also, the SIP and Z39.50 servers now log all output to the journal/syslog. Because of the number of separate opensrf services started by osrf_control those stdout log files are still used.