_getinitcommand init script symlinks broken
on my gentoo system i'm using symlinks for php-fpm init scripts.
/etc/init.d/php-fpm-php7.4 -> /etc/init.d/php-fpm
/etc/init.d/php-fpm-php7.3 -> /etc/init.d/php-fpm
file system.inc.php
function _getinitcommand
$full_init_script_path = realpath($init_script_directory.'/'.$servicename);
realpath() changes /etc/init.d/php-fpm-php7.4 to /etc/init.d/php-fpm which breaks reload and restart commands.
why is realpath() there? can this be adjusted in any way?
my workaround so far:
if(is_link($init_script_directory.'/'.$servicename)) {
$full_init_script_path = $init_script_directory.'/'.$servicename;
}
else {
$full_init_script_path = realpath($init_script_directory.'/'.$servicename);
}