mirror of
https://github.com/azlux/log2ram
synced 2024-11-23 13:56:30 +00:00
e993fa880e
Replaced dependency "neet localmount" by "after localmount"
33 lines
563 B
Plaintext
33 lines
563 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
# Init-Skript for log2ram
|
|
# This skript is designed to work on Gentoo Linux with OpenRC
|
|
|
|
description="Store logfiles in RAM to minimize writes to disk."
|
|
|
|
# Command is available when the service is started
|
|
extra_started_commands="write"
|
|
|
|
depend() {
|
|
after localmount
|
|
before logger
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting Log2Ram"
|
|
/usr/local/bin/log2ram start
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping Log2Ram"
|
|
/usr/local/bin/log2ram stop
|
|
eend $?
|
|
}
|
|
|
|
write() {
|
|
ebegin "Syncing logs to disk"
|
|
/usr/local/bin/log2ram write
|
|
eend $?
|
|
}
|