%endif
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/vasum-server
-%attr(755,root,root) %{_sbindir}/vasum-check-env
+%attr(755,root,root) %{_sbindir}/vasum-check-config
%dir /etc/vasum
%dir /etc/vasum/templates
%config /etc/vasum/daemon.conf
## Set capabilities on server executable #######################################
INSTALL(CODE "EXECUTE_PROCESS(COMMAND setcap CAP_SYS_ADMIN,CAP_MAC_OVERRIDE,CAP_SYS_TTY_CONFIG+ei \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/bin/${SERVER_CODENAME})")
-INSTALL(PROGRAMS "scripts/vasum-check-env.sh" DESTINATION sbin RENAME vasum-check-env)
+INSTALL(PROGRAMS "scripts/vasum-check-config.sh" DESTINATION sbin RENAME vasum-check-config)
// control-group functionality was merged into kernel version 2.6.24 in 2007 (wikipedia)
// namespace support begins from kernels 2.4.19(mnt), 2.6.19(ns,uts,ipc), 2.6.24(pid), 2.6.29(net)
// namespace for usr from kernel 3.8(usr) - not used by vasum
- std::cout << "kernel is old ver=" << u.release << ", run vasum-check-env" << std::endl;
+ std::cout << "kernel is old ver=" << u.release << ", run vasum-check-config" << std::endl;
return false;
}
else
std::string cgroupCheck = "/sys/fs/cgroup";
int fd = ::open(cgroupCheck.c_str(), O_RDONLY);
if (fd == -1) {
- std::cout << "no cgroups support (can't access " << cgroupCheck << "), run vasum-check-env" << std::endl;
+ std::cout << "no cgroups support (can't access " << cgroupCheck << "), run vasum-check-config" << std::endl;
return false;
}
}
::close(fd);
if (err) {
- std::cout << "cgroups problem, run vasum-check-env" << std::endl;
+ std::cout << "cgroups problem, run vasum-check-config" << std::endl;
return false;
}
else
// check namespaces
std::string nsCheck = "/proc/self/ns";
if (::access(nsCheck.c_str(), R_OK|X_OK) == -1) {
- std::cout << "no namespace support (can't access " << nsCheck << "), run vasum-check-env" << std::endl;
+ std::cout << "no namespace support (can't access " << nsCheck << "), run vasum-check-config" << std::endl;
return false;
}
else