Merge pull request #607 from sirlucjan/openrc-cleanup

openrc: drop separate logs
This commit is contained in:
Tejun Heo 2024-09-05 06:54:13 -10:00 committed by GitHub
commit 08619302e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 18 deletions

View File

@ -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',

View File

@ -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}"
# }

View File

@ -1,6 +0,0 @@
/var/log/scx/*.log {
missingok
minsize 4M
notifempty
copytruncate
}