ܼ

systemdϢ

ӥεư

ưΥॢѹ

ӥεưΥॢȤϥǥեȤ5ʬꤵƤ롣
DBΥꥫХʤɤνˤꡢ5ʬǤûˤϰʲˡˤԤ

ѹ

  • 1. ߤΥॢͤǧ

    • # systemctl show [SERVICE NAME] -p TimeoutStartUSec

    • ץ
      # systemctl show mariadb -p TimeoutStartUSec
      
      TimeoutStartUSec=5min
  • 2. ӥΥॢͤꤹե

    • # mkdir /etc/systemd/system/[SERVICE NAME]/
      # touch /etc/systemd/system/[SERVICE NAME]/timeout.conf

    • ץ
      # mkdir /etc/systemd/system/mariadb.service.d/
      # touch /etc/systemd/system/mariadb.service.d/timeout.conf
  • 3. ॢͤꤹ
    # vi /etc/systemd/system/[SERVICE NAME]/timeout.conf
    
    [Service]
    TimeoutStartSec=3600
  • 4. systemdΥ
    # systemctl daemon-reload
  • 5. ॢͤγǧ
    # systemctl show mariadb -p TimeoutStartUSec
    
    TimeoutStartUSec=1h

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2017-08-31 () 14:34:03 (20d)