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.service
file in a text editor such asvi
.For example, on RHEL 7, the
secfs-fs-barrier.service
file is located in/usr/lib/systemd/system/secfs-fs-barrier.service
. -
Add
saslauthd.service
along with the names of the unit configuration files that you edited in the last section to the end of the “Before=
” clause.For example on RHEL 7, the
secfs-fs-barrier.service
file might contain the following before editing:Before=postgresql.service httpd.service mongodb.service mongod.service mysqld.service mariadb.service nails.service
To add an entry for
saslauthd.service
and two custom application services calledexample1.service
andexample2.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.service
file.
In the future, CTE will start before each application listed in the Before=
line and those applications will stop before CTE stops.
Continue to the next section to make the necessary changes to saslauthd.service
.