mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 21:50:23 +00:00
Merge pull request #607 from sirlucjan/openrc-cleanup
openrc: drop separate logs
This commit is contained in:
commit
08619302e8
@ -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