Преглед изворни кода

base-files: ignore failure of stopping services on removal

Packages that do a killall <cmd> with the same name as the init script
will fail the prerm step when the service isn't running. Do make them
removable without having to restart the service, ignore the return code.

Signed-off-by: Jonas Gorski <[email protected]>
Acked-by: Jo-Philipp Wich <[email protected]>
Jonas Gorski пре 9 година
родитељ
комит
48cfc826eb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      package/base-files/files/lib/functions.sh

+ 1 - 1
package/base-files/files/lib/functions.sh

@@ -178,7 +178,7 @@ default_prerm() {
 			if [ "$PKG_UPGRADE" != "1" ]; then
 				"$i" disable
 			fi
-			"$i" stop
+			"$i" stop || /bin/true
 		fi
 	done
 }