Starting the PingDirectory server at boot time
Steps
-
Create the service unit configuration file in a temporary location, where "ds" is the user running the server.
Example:
$ bin/create-systemd-script \ --outputFile /tmp/ping-directory.service \ --userName ds
-
As a root user, copy the
ping-directory.service
configuration file into the/etc/systemd/system
directory. -
To read the new configuration file, reload
systemd
.Example:
$ systemctl daemon-reload
-
To start the server, run the
start
command.Example:
$ systemctl start ping-directory.service
-
To configure the server to start automatically when the system boots, run the
enable
command.Example:
$ systemctl enable ping-directory.service
-
Sign off as root.
To perform this task on an RC system, create the startup script with
bin/create-rc-script
and move it to the/etc/init.d
directory.Create symlinks to this script from the
/etc/rc3.d
directory (starting with an “S” to ensure that the server is started) and from the /etc/rc0.d directory (starting with a “K” to ensure that the server is stopped).