mirror of
https://github.com/EnumeratedDev/enit.git
synced 2026-09-16 02:26:11 +00:00
Redirect esvm output to stdout and stderr when started by enit
This commit is contained in:
@@ -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