Skip to content

Commit 6b71001

Browse files
eybergIan Eyberg
and
Ian Eyberg
authored
mv daemon outside of normal build to ease use of normal ops (nanovms#1573)
Co-authored-by: Ian Eyberg <[email protected]>
1 parent 7d5cb9d commit 6b71001

File tree

4 files changed

+11
-31
lines changed

4 files changed

+11
-31
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
daemon/daemon
12
*.swp
23
*.pb.go
34
*.pb.gw.go

cmd/cmd_daemon.go

Lines changed: 0 additions & 29 deletions
This file was deleted.

cmd/cmd_root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func GetRootCommand() *cobra.Command {
4545
// persist flags transversal to every command
4646
PersistGlobalCommandFlags(rootCmd.PersistentFlags())
4747

48-
rootCmd.AddCommand(DaemonizeCommand())
4948
rootCmd.AddCommand(BuildCommand())
5049
rootCmd.AddCommand(EnvCommand())
5150
rootCmd.AddCommand(ImageCommands())

daemon/daemon.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package daemon
1+
package main
22

33
import (
44
"fmt"
@@ -145,6 +145,15 @@ func (*server) GetVolumes(_ context.Context, in *volumeservice.VolumeListRequest
145145
return pb, nil
146146
}
147147

148+
func main() {
149+
fmt.Println("Note: If on a mac this expects ops to have suid bit set for networking.")
150+
fmt.Println("if you used the installer you are set otherwise run the following command\n" +
151+
"\tsudo chown -R root /usr/local/bin/qemu-system-x86_64\n" +
152+
"\tsudo chmod u+s /usr/local/bin/qemu-system-x86_64")
153+
154+
Daemonize()
155+
}
156+
148157
// Daemonize starts a grpc server along with a json frontend to interact
149158
// with local/'onprem' installations.
150159
func Daemonize() {

0 commit comments

Comments
 (0)