#!/bin/sh # # $FreeBSD$ # # PROVIDE: mysql # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. # mysql_limits (bool): Set to "NO" by default. # Set it to yes to run `limits -e -U mysql` # just before mysql starts. # mysql_dbdir (str): Default to "/var/db/mysql" # Base database directory. # mysql_args (str): Custom additional arguments to be passed # to mysqld_safe (default empty). # . %%RC_SUBR%% name="mysql" rcvar=`set_rcvar` load_rc_config $name : ${mysql_enable="NO"} : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} : ${mysql_args=""} mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile="${mysql_dbdir}/`/bin/hostname`.pid" command="%%PREFIX%%/bin/safe_mysqld" command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null &" procname="%%PREFIX%%/libexec/mysqld" start_precmd="${name}_prestart" mysql_install_db="%%PREFIX%%/bin/mysql_install_db" mysql_install_db_args="--ldata=${mysql_dbdir}" mysql_create_auth_tables() { eval $mysql_install_db $mysql_install_db_args >/dev/null 2>&1 [ $? -eq 0 ] && chown -R ${mysql_user}:${mysql_user} ${mysql_dbdir} } mysql_prestart() { if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi if checkyesno mysql_limits; then eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null else return 0 fi } run_rc_command "$1" option value='2016Q3'>2016Q3 FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
Commit message (Expand)AuthorAgeFilesLines
* - new option USE_GNUSTEP_MAKE=yesdinoex2006-09-291-2/+5
* - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directorystas2006-09-201-6/+5
* Remove PARALLEL_PACKAGE_BUILD check from MANUAL_PACKAGE_BUILD, it iskris2006-09-201-1/+1
* * Add missing '|| true' to silence an @unexec rmdir [1]kris2006-09-201-9/+13
* Remove DESTDIR as it is currently problematic.linimon2006-09-151-1/+1
* * Add PKGVERSION to bsd.port.mk [1]linimon2006-09-152-2/+442
* . Prefer diablo-jdk15 on 5.x/i386, 6.x/i386 and 6.x/amd64 and jdk15glewis2006-09-151-3/+2
* - Update lang/python-devel to Python 2.5c2perky2006-09-141-3/+3
* Change all my MAINTAINER lines to my new FreeBSD.org address.alexbl2006-09-131-2/+2
* KDE 3.5.4 / KOffice 1.5.2lofi2006-09-132-2/+2
* - Add osdn.dl.sourceforge.jp again (seems working fine).kuriyama2006-09-121-1/+1
* Remove expired pecl-imagick port.ale2006-09-121-2/+1
* - order dependenciesdinoex2006-09-111-4/+34
* The following functional changes were made to bsd.sites.mk:sat2006-09-031-5/+16
* - update to 0.11.0dinoex2006-08-311-1/+1
* - Update to 1.8.5sem2006-08-271-1/+1
* - s/${DESTDIR}${PREFIX}/${TARGETDIR}/erwin2006-08-143-19/+21
* - Add a bunch of vim mirrors, manually tested in Junesat2006-08-091-1/+35
* Add support for DESTDIR part I.erwin2006-08-049-148/+413
* Update python-devel to 2.5b3.perky2006-08-041-1/+1
* - Make MASTER_SITES_MOZILLA_EXTENDED follow same format as other master sitesahze2006-08-031-2/+3
* - Add MASTER_SITE_MOZILLA_EXTENDED, this can be used for most geckoahze2006-08-031-0/+5
* - Add MASTER_SITE_RUBYFORGEpav2006-08-021-0/+9
* - Add forgotten support for USE_GSTREAMER=pythonahze2006-08-011-2/+11
* - Only set default m_s_subdir if master_sites was undefinedsat2006-07-311-1/+3
* - Move my csme.ru mirrors from Makefile.xpi to bsd.sites.mksat2006-07-311-0/+8
* - Introduce some macro expansion magicsat2006-07-301-0/+49
* Fix installing PHP extensions as non-root user.ale2006-07-271-0/+1
* - Remove gnu bad sites:jmelo2006-07-261-2/+0
* - Remove packetstorm bad sites:jmelo2006-07-251-3/+0
* Make LIBPATH and CPPPATH over-writable.itetcu2006-07-251-2/+2
* - Remove bad PGSQL sites:jmelo2006-07-251-7/+2
* - Fix pop-mg.com.br path in MASTER_SITE_APACHE.jmelo2006-07-251-2/+1
* - Remove bad GNU site:jmelo2006-07-251-1/+0
* - Fix afterstep mastersite path:jmelo2006-07-241-1/+1
* - Remove bad sourceforge site:jmelo2006-07-221-1/+1
* - Remove bad gentoo sites:jmelo2006-07-221-3/+0
* - Remove festival bad sites:jmelo2006-07-221-2/+2
* - Readd ftp.chg.ru to xcontrib with path correctedsat2006-07-221-1/+2
* Remove trailing backslash; this will hopefully unbreak both the INDEXcperciva2006-07-221-1/+1
* - Remove bad site: ftp://ftp.chg.ru/pub/X11/contrib/jmelo2006-07-221-1/+0
* - Remove CPAN bad sites:jmelo2006-07-221-2/+0
* - Remove NetBSD bad sites:jmelo2006-07-221-3/+0
* - Remove bad site: ftp.lip6.fr/pub/linux/sunsite.jmelo2006-07-221-1/+0
* - Remove bad site: ftp://sunsite.cnlab-switch.ch/mirror/linux/sunsite/.jmelo2006-07-221-1/+0
* * Introduce IA32_BINARY_PORT for certain cases where a given port fetcheslinimon2006-07-181-4/+30
* - Use LIBPATH and CPPPATH by default instead of appending to LINKFLAGS/CCFLAGS,alepulver2006-07-141-6/+9
* o change default linux package at bsd.linux-rpm.mk for automaticbsam2006-07-131-5/+5
* The site limestone.uoregon.edu appeared to become very unreliable andbsam2006-07-071-1/+0
* Fix comments about LDAP versions.linimon2006-07-071-2/+2
* Whitespace cleanup.linimon2006-07-061-10/+10
* Correct maintainer email address.linimon2006-07-061-1/+1
* * Change all bogus uses of BROKEN to IGNORE. Note: the BROKEN_WITH_*linimon2006-07-0511-67/+121
* Add common code to support for WxWidgets based ports.linimon2006-07-051-0/+534
* Add common logic to support ports using the Python-based SCons build system.linimon2006-07-051-0/+85
* Move ftp.gnupg.org to the bottom of MASTER_SITE_GNUPG, as it is veryarved2006-07-021-2/+2
* Update comments for USE_MYSQL and DEFAULT_MYSQL_VER to reflect thatrafan2006-06-281-2/+2
* Revert ports/95841. It breaks kdelibs3. I didn't spot this because kdelibs3linimon2006-06-271-0/+6
* Fix to report a correct version number that we use. (2.5b1 -> 2.5.b1)perky2006-06-231-1/+1
* Update python-devel to 2.5b1.perky2006-06-231-5/+6
* - Retire MASTER_SITE_NETSCAPE since only one port uses it and quiteahze2006-06-231-25/+0
* Fix typo in IGNORE message.linimon2006-06-201-1/+1
* Fence around shell execution variables not to fail abnormally whenperky2006-06-161-5/+5
* * Update default MySQL version from 4.1 to 5.0 [1]linimon2006-06-163-24/+98
* Add another icon hack to gnomehack.marcus2006-06-141-0/+1
* - Transfer MAINTAINER to multimedia@ahze2006-06-101-1/+1
* When generating the automatic plist, also understand @dirrmtry when lookingnetchild2006-06-08