mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Also use the new stop flag to shut down cleanly on CentOS 8
This commit is contained in:
3
setup.sh
3
setup.sh
@@ -620,8 +620,9 @@ echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile
|
||||
echo "pid=\`cat \$pidfile\`" >>$config_dir/stop
|
||||
echo "if [ \"\$pid\" != \"\" ]; then" >>$config_dir/stop
|
||||
echo " kill \$pid || exit 1" >>$config_dir/stop
|
||||
echo " touch $var_dir/stop-flag" >>$config_dir/stop
|
||||
echo " if [ \"\$1\" = \"--kill\" ]; then" >>$config_dir/stop
|
||||
echo " sleep 1" >>$config_dir/stop
|
||||
echo " sleep 2" >>$config_dir/stop
|
||||
echo " (kill -9 -- -\$pid || kill -9 \$pid) 2>/dev/null" >>$config_dir/stop
|
||||
echo " fi" >>$config_dir/stop
|
||||
echo " exit 0" >>$config_dir/stop
|
||||
|
||||
Reference in New Issue
Block a user