25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/sbin/openrc-run
-
- # Init-Skript for log2ram
- # This skript is designed to work on Gentoo Linux with OpenRC
-
- description="Store logfiles in RAM to mimimize writes to disk."
-
- . /etc/log2ram.conf # Include configuration of log2ram
-
- depend() {
- need localmount
- before logger
- }
-
- start() {
- ebegin "Starting Log2Ram"
- /usr/local/bin/log2ram start
- eend $?
- }
-
- stop() {
- ebegin "Stopping Log2Ram"
- /usr/local/bin/log2ram stop
- eend $?
- }
-
- restart() {
- ebegin "Syncing logs to disk"
- /usr/local/bin/log2ram write
- eend $?
- }
|