[Pm-utils] stopservice function doesn't work with gentoo
Pacho Ramos
pacho at condmat1.ciencias.uniovi.es
Sun Jan 11 05:21:44 PST 2009
I have seen that stopservice function is looking for "running", while
gentoo init.d scripts report "started". Would be nice if it would look
for both words:
stopservice()
{
if service "$1" status 2>/dev/null | grep -c -q running; then
touch "${STORAGEDIR}/service:$1"
service "$1" stop
fi
}
I have tried to patch myself but I have been unable to do so :'(, please
let me know the proper solution for learning a bit
Thanks a lot
More information about the Pm-utils
mailing list