From fa46794d3803d80bd05937fbd4c73561ff436187 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Wed, 5 Feb 2025 22:14:53 -0700 Subject: [PATCH] New OPTIONS variable for warewulfd.service Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + include/systemd/warewulfd.service.in | 2 +- userdocs/contents/troubleshooting.rst | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 088c7842..942688ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Document defining kernel args that include commas. #1679 - Recommend installing ipmitool with Warewulf package. #970 - Add completion for profile list. #1695 +- Add OPTIONS argument for `warewulfd.service`. #1707 ### Changed diff --git a/include/systemd/warewulfd.service.in b/include/systemd/warewulfd.service.in index 249f370a..c0f7c20f 100644 --- a/include/systemd/warewulfd.service.in +++ b/include/systemd/warewulfd.service.in @@ -9,7 +9,7 @@ Type=exec EnvironmentFile=-/etc/default/warewulfd User=root Group=root -ExecStart=@BINDIR@/wwctl server +ExecStart=@BINDIR@/wwctl server $OPTIONS ExecReload=/bin/kill -HUP "$MAINPID" Restart=always diff --git a/userdocs/contents/troubleshooting.rst b/userdocs/contents/troubleshooting.rst index ff0e0d19..a74b57cd 100644 --- a/userdocs/contents/troubleshooting.rst +++ b/userdocs/contents/troubleshooting.rst @@ -1,6 +1,23 @@ Troubleshooting =============== +warewulfd +--------- + +The Warewulf server (``warewulfd``) sends logs to the systemd journal. + +.. code-block:: + + journalctl -u warewulfd.service + +To increase the verbosity of the log, specify either ``--verbose`` or +``--debug`` in the warewulfd OPTIONS. + +.. code-block:: + + echo "OPTIONS=--debug" >>/etc/default/warewulfd + systemctl restart warewulfd.service + iPXE ----