It is possible to wrap service in LVE using lve-wrappers
.
To do that, install lve-wrappers
first:
# yum install lve-wrappers
Then rename the service that you want to wrap like:
# mv /etc/init.d/[service_name] /etc/init.d/[service_name].orig
Create a new script to start the service instead:
# cat <<END > /etc/init.d/[service_name] #!/bin/sh lve_suwrapper [LVE_ID] /etc/init.d/[service_name].orig $@ END # chmod +x /etc/init.d/[service_name] # service [service_name] restart
That should be it.
You can specify any number as LVE_ID, just make it large enough so it does not clash with the user ID from
/etc/passwd
file.
Comments
0 comments
Please sign in to leave a comment.