How to minimize logging on disk?

Forum Forums General Tips and Tricks How to minimize logging on disk?

  • This topic has 2 replies, 1 voice, and was last updated Sep 3-6:53 am by user_x.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #115703
    Member
    user_x

      preamble: )
      I have on 4.9.0-326-antix installed mariadb, apache, mod_perl…
      also I installed php8.2 … quest with php-fpm was like this

      # curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg http://packages.sury.org/php/apt.gpg
      # echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] http://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
       # apt update
      ######  apt purge php* ### if has 7.4 installed
      # apt upgrade
      # apt install php8.2-cli php8.2-yaml php8.2-mbstring php8.2-mysql php8.2-sqlite3
      # apt download php8.2-fpm
      # dpkg --ignore-depends=systemd -i php8.2-fpm_8.2.9-2+0~20230829.31+debian11~1.gbpb31037_amd64.deb
      # update-rc.d php8.2-fpm disable
      # rm php8.2-fpm_8.2.9-2+0~20230829.31+debian11~1.gbpb31037_amd64.deb
      # apt-mark hold php8.2-fpm

      then
      nano /var/lib/dpkg/status
      scite /var/lib/dpkg/status
      and search php8.2-fpm for delete from systemd’s dependences
      then replace /etc/init.d/php8.2-fpm on changed php7.4-fpm (attachment)
      and make off autostart of daemons

      sudo update-rc.d mariadb      disable
      sudo update-rc.d apache2    disable
      sudo update-rc.d php8.2-fpm disable

      and i use manually start/stop/restart with own script (attachment)

      to questions:
      I also change line in the /etc/php/8.2/fpm/php-fpm.conf
      error_log = /var/log/apache2/php8.2-fpm.log
      Thus all logs in the /var/log/apache2

      and if i have uncommented in the /etc/default/tmpfs

      RAMTMP=yes
      TMPFS_SIZE=20%VM
      TMP_SIZE=10%

      and line
      tmpfs /var/log/apache2 tmpfs nodev,noexec,nosuid,size=3072000,mode=1777 0 0
      in the /etc/fstab
      Loggings does in memory, and disk don’t uses ?
      How to change place for ~/.desktop-session/current.log ?
      How to minimize using disk by other logs?

      • This topic was modified 9 months, 3 weeks ago by user_x.
      • This topic was modified 9 months, 3 weeks ago by user_x.
      Attachments:
      #115706
      Member
      user_x

        \e[92m Введите цифру 0/1/2/3 для всех сервисов
        или по одной цифре на каждый.
        0 – остановить
        1 – запустить.
        2 – перезапустить.
        3 и больше – ничего не делать.
        например, остановит все: 0
        запустит только первый : 18
        \e[m

        I’m sorry ))
        0- stopping
        1- starting
        2- restarting
        3 and more does nothing
        =================
        82 – relaunch only second server
        0 – stopps all
        18 – starts first

        #115755
        Member
        user_x

          How to change place for ~/.desktop-session/current.log

          I’m found It )
          cat /usr/local/lib/desktop-session/desktop-session-file-locations.sh | egrep ^log_file=

          • This reply was modified 9 months, 3 weeks ago by user_x.
        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.