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