Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. # It's not recommended to modify this file in-place, because it will be
  2. # overwritten during package upgrades. If you want to customize, the
  3. # best way is to create a file "/etc/systemd/system/mariadb.service",
  4. # containing
  5. # .include /lib/systemd/system/mariadb.service
  6. # ...make your changes here...
  7. # or create a file "/etc/systemd/system/mariadb.service.d/foo.conf",
  8. # which doesn't need to include ".include" call and which will be parsed
  9. # after the file mariadb.service itself is parsed.
  10. #
  11. # For more info about custom unit files, see systemd.unit(5) or
  12. # http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
  13.  
  14. # For example, if you want to increase mariadb's open-files-limit to 10000,
  15. # you need to increase systemd's LimitNOFILE setting, so create a file named
  16. # "/etc/systemd/system/mariadb.service.d/limits.conf" containing:
  17. # [Service]
  18. # LimitNOFILE=10000
  19.  
  20. # Note: /usr/lib/... is recommended in the .include line though /lib/...
  21. # still works.
  22. # Don't forget to reload systemd daemon after you change unit configuration:
  23. # root> systemctl --system daemon-reload
  24.  
  25. [Unit]
  26. Description=MariaDB database server
  27. After=syslog.target
  28. After=network.target
  29.  
  30. [Service]
  31. Type=simple
  32. User=mysql
  33. Group=mysql
  34.  
  35. ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
  36. # Note: we set --basedir to prevent probes that might trigger SELinux alarms,
  37. # per bug #547485
  38. ExecStart=/usr/bin/mysqld_safe --basedir=/usr
  39. ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID
  40.  
  41. # Give a reasonable amount of time for the server to start up/shut down
  42. TimeoutSec=300
  43.  
  44. # Place temp files in a secure directory, not /tmp
  45. PrivateTmp=true
  46.  
  47. [Install]
  48. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement