Fixed Warewulfd and systemd
This commit is contained in:
1
Makefile
1
Makefile
@@ -67,6 +67,7 @@ files: all
|
||||
mkdir -p $(DESTDIR)/usr/lib/systemd/system
|
||||
install -c -m 0644 include/firewalld/warewulf.xml $(DESTDIR)/usr/lib/firewalld/services
|
||||
install -c -m 0644 include/systemd/warewulfd.service $(DESTDIR)/usr/lib/systemd/system
|
||||
systemctl daemon-reload
|
||||
# cp -r tftpboot/* /var/lib/tftpboot/warewulf/ipxe/
|
||||
# restorecon -r /var/lib/tftpboot/warewulf
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ AssertFileIsExecutable=/usr/bin/wwctl
|
||||
[Service]
|
||||
Type=forking
|
||||
User=root
|
||||
Group=warewulf
|
||||
Group=root
|
||||
|
||||
ExecStart=/usr/bin/wwctl server start
|
||||
PIDFile=/tmp/warewulfd.pid
|
||||
|
||||
@@ -7,7 +7,6 @@ import (
|
||||
"os/exec"
|
||||
"strconv"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/hpcng/warewulf/internal/pkg/util"
|
||||
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
||||
@@ -46,9 +45,6 @@ func DaemonStart() error {
|
||||
|
||||
p.Close()
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
DaemonStatus()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user