Comments (3)
Look at the Before
parameter of "log2ram.service" of log2ram. This is the solution to implement it.
from transientlog.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transientlog.