Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logrotate emonub needs copytruncate else 0 size files left #172

Open
borpin opened this issue Feb 10, 2023 · 1 comment
Open

logrotate emonub needs copytruncate else 0 size files left #172

borpin opened this issue Feb 10, 2023 · 1 comment

Comments

@borpin
Copy link
Contributor

borpin commented Feb 10, 2023

#163

Continuing and taking @alexandrecuer comments.

Looks like the permissions are possibly wrong but also 0 size files being created

/var/log/emonhub:
total 2884
drwxr-xr-x  2 pi   root     260 Feb 10 11:37 .
drwxr-xr-x 13 root root     940 Feb 10 09:17 ..
-rw-r--r--  1 pi   pi   2950577 Feb 10 14:09 emonhub.log
-rw-r--r--  1 pi   pi         0 Feb 10 10:17 emonhub.log.1
-rw-r--r--  1 pi   pi         0 Feb  8 18:17 emonhub.log.10
-rw-r--r--  1 pi   pi         0 Feb 10 06:17 emonhub.log.2
-rw-r--r--  1 pi   pi         0 Feb 10 01:17 emonhub.log.3
-rw-r--r--  1 pi   pi         0 Feb  9 21:17 emonhub.log.4
-rw-r--r--  1 pi   pi         0 Feb  9 16:17 emonhub.log.5
-rw-r--r--  1 pi   pi         0 Feb  9 12:17 emonhub.log.6
-rw-r--r--  1 pi   pi         0 Feb  9 08:17 emonhub.log.7
-rw-r--r--  1 pi   pi         0 Feb  9 03:17 emonhub.log.8
-rw-r--r--  1 pi   pi         0 Feb  8 23:17 emonhub.log.9

Current config

/var/log/emonhub/emonhub.log {
    maxsize 3M
    compress
    olddir /var/log.old/emonhub
    createolddir 775 root root
    renamecopy
}
@borpin borpin changed the title logrotate emonub needs copy truncate else 0 size files left logrotate emonub needs copytruncate else 0 size files left Feb 10, 2023
@borpin
Copy link
Contributor Author

borpin commented Feb 10, 2023

Currently running a test - will check back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant