LoginSignup
0
0

More than 1 year has passed since last update.

log_success_msg: command not found

Posted at

/opt/lampp/bin/mysql.server: line 262: log_success_msg: command not found

/opt/lampp/bin/mysql.server: line 262: log_success_msg: command not found

XAMPPを起動するとなんか出る/opt/lampp/lampp start

/opt/lampp/bin/mysql.serverを確認すると、log_success_msg関数が実行されてないことが原因。

log_success_msg関数を実行させればおい

/opt/lampp/bin/mysql.server
     92 #
     93 # Use LSB init script functions for printing messages, if possible
     94 # Include non-LSB Red Hat init functions to make systemctl redirect work
     95 init_functions="/etc/init.d/functions"
     96 lsb_functions="/lib/lsb/init-functions"
     97 if test -f $lsb_functions; then
     98   . $lsb_functions
     99 fi
    100 
    101 if test -f $init_functions; then
    102   . $init_functions
    103 else
    104   log_success_msg()
    105   {
    106     echo " SUCCESS! $@"
    107   }
    108   log_failure_msg()
    109   {
    110     echo " ERROR! $@"
    111   }
    112 fi

変更後

/opt/lampp/bin/mysql.server
     92 #
     93 # Use LSB init script functions for printing messages, if possible
     94 # Include non-LSB Red Hat init functions to make systemctl redirect work
     95 init_functions="/etc/init.d/functions"
     96 lsb_functions="/lib/lsb/init-functions"
     97 if test -f $lsb_functions; then
     98   . $lsb_functions
     99 fi
    100 
    101 if test -f $init_functions; then
    102   . $init_functions
    103 else
    104   log_success_msg()
    105   {
    106     echo " SUCCESS! $@"
    107   }
    108   log_failure_msg()
    109   {
    110     echo " ERROR! $@"
    111   }
    112 fi
    113 
    114 log_success_msg()
    115 {
    116   echo " SUCCESS! $@"
    117 }
    118 log_failure_msg()
    119 {
    120   echo " ERROR! $@"
    121 }
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0