diff options
author | Dan Theisen <djt@hxx.in> | 2019-07-03 15:49:03 +0000 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2019-07-06 02:32:42 +0000 |
commit | c50636433139f26543aad061d54c3708b2a4e22a (patch) | |
tree | 76ba19e8e61c6e6f3a7c482377c9072e0ddaf2b2 /experimental/mariadb/mariadb.initd | |
parent | 38a0fdf20fdbc5142113e969cceee302f48a585d (diff) | |
download | packages-c50636433139f26543aad061d54c3708b2a4e22a.tar.gz packages-c50636433139f26543aad061d54c3708b2a4e22a.tar.bz2 packages-c50636433139f26543aad061d54c3708b2a4e22a.tar.xz packages-c50636433139f26543aad061d54c3708b2a4e22a.zip |
user/mariadb: new package
Diffstat (limited to 'experimental/mariadb/mariadb.initd')
-rw-r--r-- | experimental/mariadb/mariadb.initd | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/experimental/mariadb/mariadb.initd b/experimental/mariadb/mariadb.initd deleted file mode 100644 index 143ca8ff5..000000000 --- a/experimental/mariadb/mariadb.initd +++ /dev/null @@ -1,40 +0,0 @@ -#!/sbin/openrc-run - -getconf() { - v=$(my_print_defaults --mysqld | grep ^--$1) - [ -z $v ] && echo $2 || echo ${v#*=} -} - -retry="60" -extra_stopped_commands="setup" -command="/usr/bin/mysqld_safe" -command_args="--syslog --nowatch" -depend() { - use net - need localmount -} - -setup() { - ebegin "Creating a new MySQL database" - mysql_install_db --user=mysql --rpm - eend $? -} - -start_pre() { - pidfile=$(getconf pid-file "/run/mysqld/mysqld.pid") - command_args="$command_args --pid-file=$pidfile" - required_dirs=$(getconf datadir "/var/lib/mysql") - if [ ! -d $required_dirs/mysql ]; then - eerror "Datadir '$required_dirs' is empty or invalid." - eerror "Run '/etc/init.d/mariadb setup' to create new database." - fi -} - -start_post() { - ewaitfile 10 $(getconf socket "/run/mysqld/mysqld.sock") -} - -stop_pre() { - pidfile=$(getconf pid-file "/run/mysqld/mysqld.pid") -} - |