mirror of
https://github.com/azlux/log2ram
synced 2024-11-23 22:06:10 +00:00
Compare commits
No commits in common. "18226e084f4a28991f4da6ff3764e91baefae9da" and "83b373d925ad9147a0302ca3c59041278f2c53cc" have entirely different histories.
18226e084f
...
83b373d925
9
log2ram
9
log2ram
@ -59,12 +59,6 @@ wait_for () {
|
|||||||
while ! findmnt "$1" > /dev/null; do
|
while ! findmnt "$1" > /dev/null; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
|
|
||||||
while [ ! -f "$1/log2ram.test" ]; do
|
|
||||||
touch "$1/log2ram.test"
|
|
||||||
sleep 0.1
|
|
||||||
done
|
|
||||||
rm "$1/log2ram.test"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createZramLogDrive () {
|
createZramLogDrive () {
|
||||||
@ -110,7 +104,6 @@ case "$1" in
|
|||||||
wait_for "$RAM_LOG"
|
wait_for "$RAM_LOG"
|
||||||
syncFromDisk
|
syncFromDisk
|
||||||
done
|
done
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
@ -130,7 +123,6 @@ case "$1" in
|
|||||||
# Unsure as even with Root permision denied
|
# Unsure as even with Root permision denied
|
||||||
#echo ${ZRAM_LOG} > /sys/class/zram-control/hot_remove
|
#echo ${ZRAM_LOG} > /sys/class/zram-control/hot_remove
|
||||||
done
|
done
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
write)
|
write)
|
||||||
@ -144,7 +136,6 @@ case "$1" in
|
|||||||
|
|
||||||
syncToDisk
|
syncToDisk
|
||||||
done
|
done
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Log2Ram
|
Description=Log2Ram
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=basic.target rsyslog.service syslog-ng.service syslog.target systemd-journald.service sysinit.target shutdown.target zram-swap-conf.service apache2.service lighttpd.service
|
Before=basic.target rsyslog.service syslog-ng.service syslog.target systemd-journald.service sysinit.target shutdown.target zram-swap.service apache2.service lighttpd.service
|
||||||
After=local-fs.target
|
After=local-fs.target
|
||||||
Conflicts=shutdown.target reboot.target halt.target
|
Conflicts=shutdown.target reboot.target halt.target
|
||||||
RequiresMountsFor=/var/log /var/hdd.log
|
RequiresMountsFor=/var/log /var/hdd.log
|
||||||
|
Loading…
Reference in New Issue
Block a user