git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a333d71
)
mariadb: Handle non-existent logger in init
author
Michal Hrusecky
<redacted>
Thu, 1 Oct 2020 14:02:42 +0000
(16:02 +0200)
committer
Michal Hrusecky
<redacted>
Thu, 1 Oct 2020 14:02:42 +0000
(16:02 +0200)
Make sure init script has a fallback when logger is not available.
Signed-off-by: Michal Hrusecky <redacted>
utils/mariadb/files/mysqld.init
patch
|
blob
|
history
diff --git
a/utils/mariadb/files/mysqld.init
b/utils/mariadb/files/mysqld.init
index a1e6a44b1817d7823120c3d2832a177f1b692642..717e8d68d04254ec1707371bc416f5550ab9436b 100644
(file)
--- a/
utils/mariadb/files/mysqld.init
+++ b/
utils/mariadb/files/mysqld.init
@@
-7,6
+7,7
@@
STOP=10
NAME=mysqld
LOGGER="/usr/bin/logger -p user.err -s -t $NAME --"
+[ -x "$LOGGER" ] || LOGGER="echo"
MYSQLADMIN=/usr/bin/mysqladmin
MYSQLD=/usr/bin/$NAME
git clone https://git.99rst.org/PROJECT