daily pastebin goal
31%
SHARE
TWEET

services.conf

a guest May 9th, 2013 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * [REQUIRED] Database configuration.
  3.  *
  4.  * This section is used to configure databases used by Anope.
  5.  * You should at least load one database method, otherwise any data you
  6.  * have will not be stored!
  7.  */
  8.  
  9. /*
  10.  * [DEPRECATED] db_old
  11.  *
  12.  * This is the old binary database format from late Anope 1.7.x, Anope 1.8.x, and
  13.  * early Anope 1.9.x. This module only loads these databases, and will NOT save them.
  14.  * You should only use this to upgrade old databases to a newer database format by loading
  15.  * other database modules in addition to this one, which will be used when saving databases.
  16.  */
  17. #module
  18. {
  19.         name = "db_old"
  20.  
  21.         /*
  22.          * This is the encryption type used by the databases. This must be set correctly or
  23.          * your passwords will not work. Valid options are: md5, oldmd5, sha1, and plain.
  24.          */
  25.         #hash = "md5"
  26. }
  27.  
  28. /*
  29.  * [DEPRECATED] db_plain
  30.  *
  31.  * This is the flatfile database format from Anope-1.9.2 to Anope-1.9.5.
  32.  * To convert from this format, load both this and db_flatfile. Be sure to name db_flatfile's
  33.  * target database to something else. Start Anope then shut down so the new database will be written.
  34.  * Then unload this and restart Anope, loading from the new database.
  35.  */
  36. #module { name = "db_plain" }
  37.  
  38. /*
  39.  * db_flatfile
  40.  *
  41.  * This is the default flatfile database format.
  42.  */
  43. #module
  44. {
  45.         name = "db_flatfile"
  46.  
  47.         /*
  48.          * The database name db_flatfile should use
  49.          */
  50.         database = "anope.db"
  51.  
  52.         /*
  53.          * Sets the number of days backups of databases are kept. If you don't give it,
  54.          * or if you set it to 0, Services won't backup the databases.
  55.          *
  56.          * NOTE: Services must run 24 hours a day for this feature to work.
  57.          *
  58.          * This directive is optional, but recommended.
  59.          */
  60.         keepbackups = 3
  61.  
  62.         /*
  63.          * Allows Services to continue file write operations (i.e. database saving)
  64.          * even if the original file cannot be backed up. Enabling this option may
  65.          * allow Services to continue operation under conditions where it might
  66.          * otherwise fail, such as a nearly-full disk.
  67.          *
  68.          * NOTE: Enabling this option can cause irrecoverable data loss under some
  69.          * conditions, so make CERTAIN you know what you're doing when you enable it!
  70.          *
  71.          * This directive is optional, and you are discouraged against enabling it.
  72.          */
  73.         #nobackupokay = yes
  74.  
  75.         /*
  76.          * If enabled, services will fork a child process to save databases.
  77.          *
  78.          * This is only useful with very large databases, with hundreds
  79.          * of thousands of objects, that have a noticeable delay from
  80.          * writing databases.
  81.          */
  82.         fork = no
  83. }
  84.  
  85. /*
  86.  * db_sql and db_sql_live
  87.  *
  88.  * db_sql module allows saving and loading databases using one of the SQL engines.
  89.  * This module loads the databases once on startup, then incrementally updates
  90.  * objects in the database as they are changed within Anope in real time. Changes
  91.  * to the SQL tables not done by Anope will have no effect and will be overwritten.
  92.  *
  93.  * db_sql_live module allows saving and loading databases using one of the SQL engines.
  94.  * This module reads and writes to SQL in real time. Changes to the SQL tables
  95.  * will be immediately reflected into Anope. This module should not be loaded
  96.  * in conjunction with db_sql.
  97.  *
  98.  */
  99. module
  100. {
  101.         name = "db_sql"
  102.         #name = "db_sql_live"
  103.  
  104.         /*
  105.          * The SQL service db_sql(_live) should use, these are configured in modules.conf.
  106.          * For MySQL, this should probably be mysql/main.
  107.          */
  108.         engine = "mysql/main"
  109.  
  110.         /*
  111.          * An optional prefix to prepended to the name of each created table.
  112.          * Do not use the same prefix for other programs.
  113.          */
  114.         prefix = "anope_db_"
  115.  
  116.         /* Whether or not to import data from another database module in to SQL on startup.
  117.          * If you enable this, be sure that the database services is configured to use is
  118.          * empty and that another database module to import from is loaded before db_sql.
  119.          * After you enable this and do a database import you should disable it for
  120.          * subsequent restarts.
  121.          *
  122.          * Note that you can not import databases using db_sql_live. If you want to import
  123.          * databases and use db_sql_live you should import them using db_sql, then shut down
  124.          * and start services with db_sql_live.
  125.          */
  126.         import = false
  127. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top