-
Notifications
You must be signed in to change notification settings - Fork 30
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
su command in emonhub logrotate file causing issues #152
Comments
On the emonhub log folder, user should be the current/service user and group should be root so that logrotate can make its job without The process is very complex for a simple thing :
I cannot test as I dont have any emonpi with emonhub but at least this line :
But why using the service to create the log ? wont it be enought to just do it in the install.sh file like for other OEM services ? |
Firstly, there are more issues than this on the latest release as discussed here https://community.openenergymonitor.org/t/no-disk-space-although-enough-room/22042/53?u=borpin The process is because this is part of the Log2ram system, so the ram log files are rotated off the ramlog into persistent disk. This is also tied up with the emonhub user not being used anymore by emonhub. There are a multitude of issues and if I get a chance I'll work through it to fix. |
EmonScripts/defaults/etc/logrotate.d/emonhub
Line 6 in 69e8722
The su command is causing issues.
With it and running
logrotate
withoutsudo
this error appearsRemoving the command and
logrotate
complains thatNote the parent directory for
emoncms
andemonhub
are different.However, I cannot see how the
/var/log/emonhub
permission get set to 775!the use of
su
is a kludge and should be fixed.The text was updated successfully, but these errors were encountered: