include all of usr

This commit is contained in:
Alex Dadgar
2016-03-29 16:14:56 -07:00
parent a4e4819716
commit cfb46db65f
2 changed files with 2 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ func NewJavaDriver(ctx *DriverContext) Driver {
func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
// Only enable if we are root and cgroups are mounted when running on linux systems.
if runtime.GOOS == "linux" && (syscall.Geteuid() != 0 || !d.cgroupsMounted(node)) {
d.logger.Printf("[DEBUG] driver.java: must run as root user on linux, disabling")
d.logger.Printf("[DEBUG] driver.java: root priviledges and mounted cgroups required on linux, disabling")
return false, nil
}