Remove special-case replacement of stop script to fix an old bug

This commit is contained in:
Jamie Cameron
2022-04-23 12:34:18 -07:00
parent 579d377fad
commit e51ff18396
2 changed files with 0 additions and 41 deletions

View File

@ -192,26 +192,6 @@ fi
inetd=`grep "^inetd=" /etc/webmin/miniserv.conf 2>/dev/null | sed -e 's/inetd=//g'`
startafter=0
# Fix old versions of Webmin that might kill the UI process on upgrade
if [ -d /etc/webmin ]; then
cat >/etc/webmin/stop 2>/dev/null <<'EOD'
#!/bin/sh
echo Stopping Webmin server in /usr/libexec/webmin
pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
pid=`cat \$pidfile`
if [ "\$pid" != "" ]; then
kill \$pid || exit 1
if [ "\$1" = "--kill" ]; then
sleep 1
(kill -9 -- -\$pid || kill -9 \$pid) 2>/dev/null
fi
exit 0
else
exit 1
fi
EOD
fi
if [ "\$1" != 1 ]; then
# Upgrading the RPM, so stop the old webmin properly
if [ "\$inetd" != "1" ]; then