mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-24 20:00:22 +00:00
openrc: drop separate logs
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
This commit is contained in:
parent
161790f32b
commit
51f8c35841
@ -4,9 +4,6 @@ install_data('scx.initrd', install_dir: '/etc/init.d', rename: 'scx')
|
||||
# Install the 'scx' file to the '/etc/default' directory
|
||||
install_data('../scx', install_dir: '/etc/default')
|
||||
|
||||
# Install the 'scx.logrotate' file to /etc/logrotate.d/scx
|
||||
install_data('scx.logrotate', install_dir: '/etc/logrotate.d', rename: 'scx')
|
||||
|
||||
# Symlinking /etc/default/scx to /etc/conf.d/scx
|
||||
install_symlink(
|
||||
'scx',
|
||||
|
@ -10,15 +10,6 @@ command="/usr/bin/$SCX_SCHEDULER"
|
||||
command_args="$SCX_FLAGS"
|
||||
command_user="${SCX_USER:-root}:${SCX_GROUP:-root}"
|
||||
|
||||
output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
|
||||
error_log="$output_log"
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${RC_SVCNAME}"
|
||||
checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${RC_SVCNAME}"
|
||||
checkpath -q -f -m 0644 -o "${command_user}" "$output_log"
|
||||
}
|
||||
|
||||
# stop_post() {
|
||||
# rm -rf /var/cache/"${RC_SVCNAME}"
|
||||
# }
|
||||
|
@ -1,6 +0,0 @@
|
||||
/var/log/scx/*.log {
|
||||
missingok
|
||||
minsize 4M
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
Loading…
Reference in New Issue
Block a user