Skip to content

crash because missing openrc #105

Description

@Jolly-Pirate

This crash happens weekly:

logrotate_script: line 2: /etc/init.d/php-fpm7: not found
error: error running shared postrotate script for '/var/log/php7/*.log '
1679635286 C Caught internal_error: 'priority_queue_insert(...) called on an invalid item.'.
---DUMP---
Stack dump not enabled.

Looking at the /etc/logrotate.d/php-fpm7

/var/log/php7/*.log {
        rotate 7
        daily
        missingok
        notifempty
        delaycompress
        compress
        dateext
        sharedscripts
        postrotate
                /etc/init.d/php-fpm7 --ifstarted --quiet reopen
        endscript
}

and trying to run /etc/init.d/php-fpm7 --ifstarted --quiet reopen, we get this error:
bash: /etc/init.d/php-fpm7: /sbin/openrc-run: bad interpreter: No such file or directory

It seems that openrc is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions