diff options
author | Michael Pirogov <vbnet.ru@gmail.com> | 2019-09-24 17:39:47 +0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-24 16:38:45 -0300 |
commit | facbf31f931fb423153e744ca5c198e77921e410 (patch) | |
tree | 1793e874acd3937d8f83b31d345f11a8f855f0c4 /testing/restart-services/alpine.patch | |
parent | a298c649a1ade48b1be4caeb48c660a8863ebad6 (diff) | |
download | aports-facbf31f931fb423153e744ca5c198e77921e410.tar.bz2 aports-facbf31f931fb423153e744ca5c198e77921e410.tar.xz |
testing/restart-services: new aport
Diffstat (limited to 'testing/restart-services/alpine.patch')
-rw-r--r-- | testing/restart-services/alpine.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/restart-services/alpine.patch b/testing/restart-services/alpine.patch new file mode 100644 index 0000000000..d738e188db --- /dev/null +++ b/testing/restart-services/alpine.patch @@ -0,0 +1,43 @@ +--- a/restart-services.orig ++++ b/restart-services +@@ -380,7 +380,7 @@ + done + # lib_users <= 0.12 reports postgres' "/anon_hugepage" as deleted lib, so tell it to ignore this manually (see bug #648356) + # bug #678500: ignore tmp-files +-done < <(lib_users -m -I /anon_hugepage -i '/tmp/*') ++done < <(lib_users.py -m -I /anon_hugepage -i '/tmp/*') + + debug "analyzing remaining processes (not direct hits) ..." + debug "TODO_PROCESSES_EXE: ${TODO_PROCESSES_EXE[*]}" +@@ -422,7 +422,7 @@ + EXEC_PATH_RE="/(usr/)?((s)?bin|lib(32|64|exec))?/" + if [[ $s =~ $EXEC_PATH_RE ]]; then + debug "'$s' may be script, looking for package" +- if PKG=$(qfile --nocolor -- "$s"|awk '{print $1}'); then ++ if PKG=$(apk info --who-owns --no-progress -- "$s"|awk '{print $1}'); then + debug "bingo. '$s' belongs to a package" + break + fi +@@ -431,19 +431,13 @@ + fi + else + debug "process does not look like a script" +- PKG=$(qfile --nocolor -- "$lu_exe"|awk '{print $1}') ++ PKG=$(apk info --who-owns --no-progress -- "$lu_exe"|awk '{print $1}') + fi + + if [[ $PKG ]]; then + debug "found package: $PKG" + +- # some processes have their init scripts in a seperate package :-/ +- # so as a last resort we add hardcoded well known cases +- case $PKG in +- dev-lang/php) PKG="app-admin/eselect-php" ;; +- esac +- +- _init_scripts=( $(qlist -e $PKG|grep /etc/init.d/|paste -s -d" ") ) ++ _init_scripts=( $(apk info -L "${PKG}-openrc"|grep /etc/init.d/|paste -s -d" ") ) + if [[ ${#_init_scripts} -gt 0 ]]; then + debug "found init scripts: ${_init_scripts[*]}" + for i in "${_init_scripts[@]}"; do + |