wwclient uses WW_IPADDR, if set, to contact the Warewulf server.

- Closes: #1788

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-03-22 01:24:09 -06:00
parent be322a8062
commit e4a9018b80
6 changed files with 14 additions and 2 deletions

View File

@@ -57,5 +57,6 @@ Filename: warewulf/init.d/80-wwclient
# Only start if the systemd is not available
test -e /usr/lib/systemd/systemd && exit 0
echo "Starting wwclient"
if [ -r /etc/default/wwclient ]; then . /etc/default/wwclient; fi
nohup /warewulf/wwclient >/var/log/wwclient.log 2>&1 </dev/null &
`

View File

@@ -5,6 +5,7 @@ After=local-fs.target
[Service]
Type=notify
EnvironmentFile=-/etc/default/wwclient
ExecStart=/warewulf/wwclient
ExecReload=/bin/kill -s SIGHUP "$MAINPID"
PIDFile=/var/run/wwclient.pid

View File

@@ -5,4 +5,5 @@
# Only start if the systemd is not available
test -e /usr/lib/systemd/systemd && exit 0
echo "Starting wwclient"
if [ -r /etc/default/wwclient ]; then . /etc/default/wwclient; fi
nohup {{ .Paths.WWClientdir }}/wwclient >/var/log/wwclient.log 2>&1 </dev/null &