i have emerged tenshi-0.3.2 than i have modified this tenshi.conf line: set logfile /var/log/mail/current and changed the file permissions of /var/log/mail/current from root:root to root:tenshi (the file can be tailed correctly from shel) but when i start tenshi init.d script i get this error: * Starting tenshi ... [ERROR] /var/log/mail/current: no such file! at /usr/sbin/tenshi line 91 what is wrong? file exist and can be tailed, the permissions are right, i have forgot something to do/setup?
run perl -e 'if ( -f "/var/log/mail/current" ) { print "yes" } else { print "no" }' as the tenshi user please.
i have done: # su - tenshi -c "perl 'if ( -f "/var/log/mail/current" ) { print "yes" } else { print "no" }'" and give me no output # tailf /var/log/everything/current Feb 24 14:12:49 [su(pam_unix)] session opened for user tenshi by root(uid=0) Feb 24 14:12:49 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST Feb 24 14:12:49 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY> Feb 24 14:12:49 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY Feb 24 14:12:49 [su(pam_unix)] session closed for user tenshi but if i run: # perl 'if ( -f "/var/log/mail/current" ) { print "yes" } else { print "no" }' i get: # yes
does the tenshi user have a shell?
teshi user have /bin/false, i have changed to /bin/bash but the error persist. now i have upgraded to 0.3.3 version, but the problem still here. i have found a courius thing, the problem happen only if a set a three name dir such as: /var/log/mail/current /var/log/qmail/smtp-current but if i put two name dir such as: /var/log/personal.log /var/log/Xorg.log tenshi work perfectly... can this help you?
Are you sure that the permissions on the files AND the directories are correct and allows tenshi user to read the files?
yes i'm sure, i have checked and re-checked all the permissions: drwxrwx--- 2 root tenshi 4096 Apr 29 02:48 everything drwxrwx--- 2 root tenshi 4096 Apr 29 02:48 mail do a chmod 770 for every dir that i want to watch, but problem persist. today i have upgrade the perl, from version [5.8.6-r2] to [5.8.6-r4] and now seem that tenshi work, the problem there isn't at the startup daemon; now i hard check the server for 24/48 to see if tenshi work faultless, than i will report you.
Any further feedback about this?
Closing due to lack of feedback, please reopen if necessary.