Create a script to run PingAuthorize Server when the system boots.
PingAuthorize 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 PingAuthorize 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-authorize.service \ --userName pingauthorize
In this example,
pingauthorize
represents the username assigned to PingAuthorize Server. - Switch to root user. The command for doing this will vary depending on your distribution.
- As a root user, copy the ping-authorize.service configuration file
to the /etc/systemd/ system
directory.
cp ping-authorize.service /etc/systemd/
- Reload systemd to read the new configuration
file.
$ systemctl daemon-reload
- To start PingAuthorize Server,
use the start
command.
$ systemctl start ping-authorize.service
- To configure PingAuthorize Server to start
automatically when the system boots, use the
enable command, as in the following
example:
$ systemctl enable ping-authorize.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.