Coder Social home page Coder Social logo

Comments (3)

azlux avatar azlux commented on July 4, 2024

Look at the Before parameter of "log2ram.service" of log2ram. This is the solution to implement it.

from transientlog.

ymettier avatar ymettier commented on July 4, 2024

Hello again

1 month ago, I played with this again. And I tries to use the idea of Before that looks good. But...

Here is my /etc/init.d/transientlog beginning :

#!/bin/sh
### BEGIN INIT INFO
# Provides: transientlog
# Required-Start:
# Required-Stop: 
# X-Start-Before:	$syslog bind9 console-setup cron cups dhcpcd exim4 isc-dhcp-server ntp rsyslog
# X-Stop-After:		$syslog
# X-Interactive:	yes
# Default-Start:	2 3 4 5
# Default-Stop:		0 1 6
# Short-Description:	Keeps /var/log in RAM
# Description: Moves the contents of /var/log to RAM during boot
#              and keeps it there until shutdown/reboot, when it
#              copies the contents back to permanent storage.
### END INIT INFO

Notice thte X-Start-Before that is supposed to follow the idea of Before of systemd.

But... It does not work. I still need to restart the services myself after a reboot.

Did I miss something ? Have I done something wrong ?

Would a native systemd script work better than /etc/init.d/transientlog ?

from transientlog.

azlux avatar azlux commented on July 4, 2024

Use log2ram, and test if the issue appear again. I have add a lot of improvement. May be it will be better than programming it again.

from transientlog.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.