Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Azlux

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Azlux got a reaction from infinity in Where is ramlog?   
    infinity : Yes it's will work. It's do the same as hardvk0 script. 
  2. Like
    Azlux got a reaction from infinity in Where is ramlog?   
    when are they written do SD card finally?
    -> It's a systemd script, so the log are written when the service stop
     
    What triggers the writing to SD-Card
    -> On a halt, a restart of the service or of the computer
     
    is your script meant to be always holding the logs in Ramdisk, thus losing all logs after a reboot
    -> No. You will lose your log only if your machine stop brutally (electricity failure for example)
     
    what happens if your "SIZE=25M" is full with logs
    -> it's like a partition for the log software (syslog) , the syslog will stop writting if it's full until your log rotate with logrotate.It's why you need to adapt this value. you can check the size with : df -h
     
    Does Log2Ram delete then the oldest logs according to a rotating principle?
    -> It's the job of logrotate, the job of log2ram is to mount a ram folder for your /var/log folder.
     
     
  3. Like
    Azlux got a reaction from infinity in Where is ramlog?   
    Hi,
    1. The mount folder is a tmpfs, it a static size. So the SIZE variable define the maximal size you allocate into your RAM for the log folder. (Mine is around 25MB)
    2. You can make a CRON to make a 'service log2ram restart'. Into my script, the restart function copy the content into the initial disk folder
  4. Like
    Azlux got a reaction from infinity in Where is ramlog?   
    Thank for your suggestions.
    You can modify the code depending of your needs. (On a raspberry, 256Mb is the half of my RAM)
    The option -u of the cp make a update
    -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing I think it's enough.
    But I will add yours improvements like a option. (Because I like minimalist program without dependencies)
  5. Like
    Azlux reacted to hardvk0 in Where is ramlog?   
    /etc/cron.daily/log2ram:
    #!/bin/sh test -x /usr/local/bin/log2ram || exit 0 /usr/local/bin/log2ram write
  6. Like
    Azlux got a reaction from infinity in Where is ramlog?   
    Yes it should. If not, do not hesitate to open an issue on github
    I use basic functions of debian jessie, I don't see any problem for log2ram for working on your system.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.