Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83178 - tenshi 0.3.2 "no such file" error in init.d script
Summary: tenshi 0.3.2 "no such file" error in init.d script
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Tenshi (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Tenshi Group User
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-24 04:44 UTC by MT
Modified: 2005-05-17 00:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2005-02-24 04:44:43 UTC
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?
Comment 1 rob holland (RETIRED) gentoo-dev 2005-02-24 04:57:33 UTC
run perl -e 'if ( -f "/var/log/mail/current" ) { print "yes" } else { print "no" }' as the tenshi user please.
Comment 2 MT 2005-02-24 05:24:56 UTC
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
Comment 3 rob holland (RETIRED) gentoo-dev 2005-03-16 01:46:30 UTC
does the tenshi user have a shell?
Comment 4 MT 2005-03-22 15:08:15 UTC
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?
Comment 5 Andrea Barisani (RETIRED) gentoo-dev 2005-04-06 03:08:46 UTC
Are you sure that the permissions on the files AND the directories are correct
and allows tenshi user to read the files?
Comment 6 MT 2005-04-29 02:40:02 UTC
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.
Comment 7 Andrea Barisani (RETIRED) gentoo-dev 2005-05-14 03:42:51 UTC
Any further feedback about this?
Comment 8 Andrea Barisani (RETIRED) gentoo-dev 2005-05-17 00:22:32 UTC
Closing due to lack of feedback, please reopen if necessary.