Adding Applications to the secfs-fs-barrier.service File
After editing the systemd unit configuration file for each dependent application, you must also add each application to the secfs-fs-barrier.service file that is installed as part of CTE. The secfs-fs-barrier.service file ensures that CTE starts before dependent applications during boot and CTE stops before dependent applications when the system is shut down.
-
As a root user, open the
secfs-fs-barrier.servicefile in a text editor such asvi.For example, the
secfs-fs-barrier.servicefile is located in/usr/lib/systemd/system/secfs-fs-barrier.service. -
Add
saslauthd.servicealong with the names of the unit configuration files that you edited in the last section to the end of the “Before=” clause.For example, the
secfs-fs-barrier.servicefile might contain the following before editing:Before=postgresql.service httpd.service mongodb.service mongod.service mysqld.service mariadb.service nails.serviceTo add an entry for
saslauthd.serviceand two custom application services calledexample1.serviceandexample2.service, you would edit theBefore=line to look like this:Before=postgresql.service httpd.service mongodb.service mongod.service mysqld.service mariadb.service nails.service saslauthd.service example1.service example2.service -
Save and close the
secfs-fs-barrier.servicefile.
In the future, CTE will start before each application listed in the Before= line and those applications will stop before CTE stops.