Page created: 22 Jul 2020
|
Page updated: 11 Mar 2021
Create a script to run PingDataGovernance Server when the system boots.
PingDataGovernance Server does not start automatically when the system is booted. By default, you must use the bin/start-server command to start it manually.
-
To configure PingDataGovernance Server to start automatically when the system
boots, complete one of the following tasks:
- Use the create-systemd-script utility to create a
script.
- Create the service unit configuration file in a temporary location,
as in the following
example.
$ bin/create-systemd-script \ --outputFile /tmp/ping-data-governance.service \ --userName dg
In this example,
dg
represents the username assigned to PingDataGovernance Server. - Switch to root user. The command for doing this will vary depending on your distribution.
- As a root user, copy the ping-data-governance.service configuration
file to the /etc/systemd/ system directory as
shown.
cp ping-data-governance.service /etc/systemd/
- Reload systemd to read the new configuration
file as shown.
$ systemctl daemon-reload
- To start PingDataGovernance Server, use the start
command.
$ systemctl start ping-data-governance.service
- To configure PingDataGovernance Server to start automatically when
the system boots, use the enable command, as in
the following example.
$ systemctl enable ping-data-governance.service
- Sign off from the system as the root user.
- Create the service unit configuration file in a temporary location,
as in the following
example.
- Create a Run Control (RC) script manually.
- Run bin/create-rc-script to create the startup script.
- Move the script to the /etc/init.d directory.
- Create symlinks to the script from the
/etc/rc3.d directory.
To ensure that the server is started, begin the symlinks with an
S
. - Create symlinks to the script from the
/etc/rc0.d directory.
To ensure that the server is stopped, begin the symlinks with a
K
.
- Use the create-systemd-script utility to create a
script.