1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

- 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
This commit is contained in:
unknown
2002-11-27 22:57:17 +01:00
parent b39752294b
commit 4536b06923
2 changed files with 55 additions and 17 deletions

View File

@@ -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