[MDEV-5068] import file from init script Created: 2013-09-25  Updated: 2016-03-16  Resolved: 2014-04-18

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: 5.5.37

Type: Task Priority: Minor
Reporter: Alberto Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: packaging

Issue Links:
Duplicate
duplicates MDEV-5540 MariaDB reports failure to start Closed
Relates
relates to MDEV-8509 make it possible to change MYSQLD_STA... Closed

 Description   

As many other services do (in CentOS), it would be handy if /etc/init.d/mysql could source another script, in which some actions can be done (mount disks, error checking...).

I suggest the following:

# Find the name of the script
NAME=`basename $0`
# import file if present
[ -f /etc/sysconfig/${NAME} ] && . /etc/sysconfig/${NAME}


Generated at Thu Feb 08 07:01:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.