Simplify wwctl server
- Always run in the foreground - Always log to stdout/err (unless syslog is requested) - Update systemd to reload with a direct signal - Omit any pidfile for "warewulfd" Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -114,8 +114,7 @@ explained as follows:
|
||||
services.)
|
||||
|
||||
* ``warewulf:syslog``: This determines whether Warewulf server logs go
|
||||
to syslog or are written directly to a log file. (e.g.,
|
||||
``/var/log/warewulfd.log``)
|
||||
to syslog.
|
||||
|
||||
* ``nfs:export paths``: Warewulf can automatically set up these NFS
|
||||
exports.
|
||||
|
||||
@@ -48,22 +48,3 @@ systemd service:
|
||||
.. code-block:: console
|
||||
|
||||
# systemctl enable --now warewulfd
|
||||
|
||||
You can also check and control the Warewulf service using the ``wwctl``
|
||||
command line program as follows:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
# wwctl server status
|
||||
|
||||
.. note::
|
||||
|
||||
If the Warewulf service is running via systemd, restarting
|
||||
stopping, and starting it from the ``wwctl`` command may result in
|
||||
unexpected results.
|
||||
|
||||
Logs
|
||||
----
|
||||
|
||||
The Warewulf server logs are by default written to
|
||||
``/var/log/warewulfd.log``.
|
||||
|
||||
@@ -121,8 +121,6 @@ Build and install Warewulf on wwdev
|
||||
sudo wwctl overlay build -a
|
||||
|
||||
# Start the Warewulf daemon
|
||||
sudo wwctl ready
|
||||
sudo wwctl server start
|
||||
sudo wwctl server status
|
||||
sudo wwctl server &
|
||||
|
||||
Boot your node and watch the bash and the output of the Warewulfd process
|
||||
|
||||
@@ -223,7 +223,7 @@ Vagrantfile
|
||||
systemd name: nfs-server
|
||||
CONF
|
||||
|
||||
sed -i 's@ExecStart=/usr/bin/wwctl server start@ExecStart=/usr/bin/wwctl server start -d -v@' /usr/lib/systemd/system/warewulfd.service
|
||||
sed -i 's@ExecStart=/usr/bin/wwctl server@ExecStart=/usr/bin/wwctl server -d -v@' /usr/lib/systemd/system/warewulfd.service
|
||||
systemctl enable --now warewulfd
|
||||
|
||||
wwctl configure --all
|
||||
|
||||
@@ -137,9 +137,7 @@ I have VirtualBox running on my desktop.
|
||||
sudo wwctl overlay build -a
|
||||
|
||||
# Start the Warewulf daemon
|
||||
sudo wwctl ready
|
||||
sudo wwctl server start
|
||||
sudo wwctl server status
|
||||
sudo wwctl server &
|
||||
|
||||
4. Create a new guest VM instance inside the VirtualBox to be the
|
||||
Warewulf client/compute node. Under the system configuration make
|
||||
|
||||
Reference in New Issue
Block a user