summaryrefslogtreecommitdiff
path: root/support-files/mysql.server.sh
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2002-11-27 22:57:17 +0100
committerunknown <lenz@mysql.com>2002-11-27 22:57:17 +0100
commit4536b069238b0aa862bc3aa497b750c945eef736 (patch)
tree1f0bcb44252812f8c117f3ea1282fc68302400b2 /support-files/mysql.server.sh
parentb39752294b6fc55d702432187f3bb6ee0b3d6329 (diff)
downloadmariadb-git-4536b069238b0aa862bc3aa497b750c945eef736.tar.gz
- Moved the init script from /etc/rc.d/init.d to /etc/init.d for better
compatibility of the RPMs - added "restart" action to the mysql.server init script support-files/mysql.server.sh: - added "restart" action support-files/mysql.spec.sh: - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of Linux distributions now support this scheme as proposed by the LSB either directly or via a compatibility symlink) - relaxed the Perl requirements a bit - Use new "restart" init script action instead of starting and stopping separately - Be more flexible in activating the automatic bootup - use insserv (on older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and others) to create the respective symlinks
Diffstat (limited to 'support-files/mysql.server.sh')
-rw-r--r--support-files/mysql.server.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index 822e864dd77..a6468997b0f 100644
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -173,9 +173,16 @@ case "$mode" in
fi
;;
+ 'restart')
+ # Stop the service and regardless of whether it was
+ # running or not, start it again.
+ $0 stop
+ $0 start
+ ;;
+
*)
# usage
- echo "usage: $0 start|stop"
+ echo "Usage: $0 start|stop|restart"
exit 1
;;
esac