mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to ensure systemd is the active init system #2022
This commit is contained in:
8
setup.sh
8
setup.sh
@@ -661,7 +661,13 @@ if [ ! -f "$config_dir/.pre-install" ]; then
|
||||
fi
|
||||
|
||||
# Test if we have systemd system
|
||||
systemctlcmd=`which systemctl 2>/dev/null`
|
||||
systemctlcmd=$(which systemctl 2>/dev/null)
|
||||
if [ -x "$systemctlcmd" ]; then
|
||||
initsys=$(cat /proc/1/comm 2>/dev/null)
|
||||
if [ "$initsys" != "systemd" ]; then
|
||||
systemctlcmd=""
|
||||
fi
|
||||
fi
|
||||
|
||||
# Re-generating main scripts
|
||||
echo "Creating start and stop init scripts .."
|
||||
|
||||
Reference in New Issue
Block a user