Skip to content

Commit

Permalink
openrc: drop separate logs
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Gorski <[email protected]>
  • Loading branch information
sirlucjan committed Sep 5, 2024
1 parent 161790f commit 51f8c35
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions services/openrc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
9 changes: 0 additions & 9 deletions services/openrc/scx.initrd
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
# }
6 changes: 0 additions & 6 deletions services/openrc/scx.logrotate

This file was deleted.

0 comments on commit 51f8c35

Please sign in to comment.