Skip to content

Commit

Permalink
Start and stop unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 4, 2022
1 parent ca85560 commit 4d097b9
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions makerpm.pl
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@
if [ "\$1" != 1 ]; then
# Upgrading the RPM, so stop the old Usermin properly
if [ "\$inetd" != "1" ]; then
if [ -e /etc/usermin/.pre-install ]; then
/etc/usermin/.pre-install >/dev/null 2>&1 </dev/null
fi
/etc/usermin/stop >/dev/null 2>&1 </dev/null
fi
fi
cd /usr/libexec/usermin
Expand Down Expand Up @@ -186,16 +184,9 @@
chmod 600 /tmp/.webmin/usermin-setup.out
rm -f /var/lock/subsys/usermin
if [ "\$inetd" != "1" ]; then
if [ "\$1" == 1 ]; then
/etc/usermin/start >/dev/null 2>&1 </dev/null
if [ "\$?" != "0" ]; then
echo "error: Usermin server cannot be started. It is advised to start it manually\n by running \\"/etc/usermin/restart-by-force-kill\\" command"
fi
else
/etc/usermin/.post-install >/dev/null 2>&1 </dev/null
if [ "\$?" != "0" ]; then
echo "warning: Usermin server cannot be restarted. It is advised to restart it manually\n by running \\"/etc/usermin/restart-by-force-kill\\" when upgrade process is finished"
fi
/etc/usermin/start >/dev/null 2>&1 </dev/null
if [ "\$?" != "0" ]; then
echo "error: Usermin server cannot be started. It is advised to start it manually\n by running \\"/etc/usermin/restart-by-force-kill\\" command"
fi
fi
cat >/etc/usermin/uninstall.sh <<EOFF
Expand Down

0 comments on commit 4d097b9

Please sign in to comment.