mirror of
https://github.com/EnumeratedDev/enit.git
synced 2026-10-31 10:51:48 +00:00
Redirect esvm output to stdout and stderr when started by enit
This commit is contained in:
1 parent
6297d8bf47
commit
57e92eef91
1 file changed
+2
@@ -117,6 +117,8 @@ func startServiceManager() {
|
|||||||
fmt.Print("Initializing service manager... ")
|
fmt.Print("Initializing service manager... ")
|
||||||
|
|
||||||
cmd := exec.Command("/sbin/esvm", path.Join(runstatedir, "esvm"), path.Join(sysconfdir, "esvm"))
|
cmd := exec.Command("/sbin/esvm", path.Join(runstatedir, "esvm"), path.Join(sysconfdir, "esvm"))
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
cmd.Stderr = os.Stderr
|
||||||
err := cmd.Start()
|
err := cmd.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Could not initialize service manager!")
|
log.Println("Could not initialize service manager!")
|
||||||
|
|||||||
Reference in new issue
Block a user