Gentoo Forums
Gentoo Forums
Quick Search: in
run-parts not working anymore :/
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Thu Mar 31, 2005 5:37 am    Post subject: run-parts not working anymore :/ Reply with quote

last week run-parts stopped working at some point. I was using it for my mrtg stuff and noticed it stopped updating. When I run it with --test there is no output.

Code:
ls /etc/cron.mrtg/
cpu.sh  load.sh  ping.sh  traffic.sh


yet:
Code:
/bin/run-parts --list /etc/cron.mrtg/

gives me NO output.

What on earth is going on?
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
zeroclip
n00b
n00b


Joined: 02 Apr 2004
Posts: 38

PostPosted: Wed Apr 06, 2005 12:27 pm    Post subject: Reply with quote

I have the exact same problem. Started right after last emerge as far as i can tell.

Code:

# /bin/run-parts --list /etc/mrtg
#
Back to top
View user's profile Send private message
Tobbi
n00b
n00b


Joined: 16 May 2002
Posts: 25
Location: Karmøy, Norway

PostPosted: Fri Apr 08, 2005 5:38 pm    Post subject: Reply with quote

After my last emerge -uD world on my server, I noticed my mrtg-graphs didn't update any longer.

Running run-parts --test /etc/cron.mrtg didn't return anything for me either.
When I downgraded with 'emerge =debianutils-1.16.7-r4', it worked again though.
Back to top
View user's profile Send private message
Daath
n00b
n00b


Joined: 06 Aug 2003
Posts: 21

PostPosted: Mon Apr 11, 2005 2:28 pm    Post subject: Reply with quote

Same problem here... I'm gonna try downgrading debianutils too...
_________________
Any technology distinguishable from magic, is insufficiently advanced.
Back to top
View user's profile Send private message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Mon Apr 11, 2005 5:04 pm    Post subject: Reply with quote

Downgrading debianutils worked for me as well.
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
FLYLM
n00b
n00b


Joined: 25 Mar 2004
Posts: 62
Location: France

PostPosted: Fri May 27, 2005 1:55 pm    Post subject: Reply with quote

I've got the same pb since upgrade debianutils-2.13.1-r1.

/bin/run-part doesn't work.

Downgrading worked for me, i've masking the package "=sys-apps/debianutils-2.13.1-r1"

--- Sorry for me english ---
Back to top
View user's profile Send private message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Fri May 27, 2005 2:13 pm    Post subject: Reply with quote

I sure wish I knew WHY this was happening though. It doesn't make much sense to me. :/
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
junnuh
n00b
n00b


Joined: 15 Aug 2002
Posts: 9
Location: Hamburg, Germany

PostPosted: Tue May 31, 2005 3:44 pm    Post subject: I just wanted to post.. Reply with quote

..a "me too".

Suddenly it stopped working..8O
Back to top
View user's profile Send private message
amoebapr
n00b
n00b


Joined: 25 Nov 2003
Posts: 11
Location: Minneapolis, MN

PostPosted: Fri Jun 03, 2005 2:52 pm    Post subject: Reply with quote

also a me too. I'm going to downgrade as well.
Back to top
View user's profile Send private message
shawv
n00b
n00b


Joined: 11 Jan 2005
Posts: 9

PostPosted: Mon Jun 06, 2005 4:43 am    Post subject: run-parts not working Reply with quote

Downgrading worked for me as well- mask in /etc/portage/package.mask and then re-emerge.
I couldn't find a bug in the gentoo bugzilla, so I opened one. It's bug 95173.
Back to top
View user's profile Send private message
KayJay
n00b
n00b


Joined: 13 May 2005
Posts: 2

PostPosted: Wed Jun 15, 2005 9:17 am    Post subject: Reply with quote

I've noticed it on mine too. It appears that any script with a '.' in it will fail, as logrotate.cron also fails on mine! Downgrading debianutils as we speak.

Initally noticed mrtg graphs failed to update

cpu.sh
mem.sh
swap.sh
traffic.sh

:?
Back to top
View user's profile Send private message
SpanKY
Developer
Developer


Joined: 18 Apr 2002
Posts: 321
Location: Worcester, MA

PostPosted: Thu Jun 16, 2005 11:21 pm    Post subject: Reply with quote

remove the '.' from the file name and it should "work" just fine

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308911
Back to top
View user's profile Send private message
tam
Guru
Guru


Joined: 04 Mar 2003
Posts: 569
Location: freiburg.de

PostPosted: Mon Jun 20, 2005 12:59 pm    Post subject: Reply with quote

Ahhh, I just wondered why my apm scripts didn't run anymore. :evil:
Back to top
View user's profile Send private message
kerframil
l33t
l33t


Joined: 19 Apr 2002
Posts: 700
Location: London, UK

PostPosted: Tue Jun 21, 2005 9:11 pm    Post subject: Reply with quote

Another solution is to use the --lsbsysinit parameter, for example:
Code:
/bin/run-parts --lsbsysinit --list /etc/cron.mrtg/

The background for this rather annoying issue is covered in detail in bugs #95173 and #96730.
Back to top
View user's profile Send private message
heutger
n00b
n00b


Joined: 13 Apr 2004
Posts: 9

PostPosted: Fri Jul 08, 2005 10:50 pm    Post subject: Reply with quote

kerframil wrote:
Another solution is to use the --lsbsysinit parameter, for example:
Code:
/bin/run-parts --lsbsysinit --list /etc/cron.mrtg/

The background for this rather annoying issue is covered in detail in bugs #95173 and #96730.


Thanks for this help, but --lsbsysinit doesn't change anything for me? I tried with and without, no difference at all?!
Back to top
View user's profile Send private message
kerframil
l33t
l33t


Joined: 19 Apr 2002
Posts: 700
Location: London, UK

PostPosted: Mon Jul 11, 2005 2:22 am    Post subject: Reply with quote

heutger wrote:
Thanks for this help, but --lsbsysinit doesn't change anything for me? I tried with and without, no difference at all?!

Hmm ... I apologise as I interpreted this issue incorrectly. You are quite right, that parameter will not help. Fullstops (periods) are allowed in the filename when using this parameter but unfortunately not in the way that is discussed in this thread. In LSB-compliant mode, debianutils now employs three regular expressions which indicate valid "namespaces" for scripts to be executed. The one which I had not scrutinised properly is as follows:
Code:
(^_?([a-z0-9_.]+-)+[a-z0-9]+$)

The above expression enforces a naming convention for scripts that adhere to the LSB heirarchical/reserved namespace. The use of a fullstop is quite particular then - for example this is valid:
Code:
gentoo.org-foo

whereas this is not:
Code:
gentoo.org-foo.sh

Unfortunately, the two alternate namespaces do not allow for fullstops to be used at all. For more background on this see man run-parts and the LSB blurb. I'll be updating the bug(s) about this issue soon. In the meantime, I'm afraid that you either have to continue to stick to the old series of debianutils, use an alternate run-parts implementation (such as the trivial method employed by RHEL/Fedora) or simply avoid using fullstops in the filenames for your scripts. :(
Back to top
View user's profile Send private message
kerframil
l33t
l33t


Joined: 19 Apr 2002
Posts: 700
Location: London, UK

PostPosted: Wed Jul 13, 2005 4:12 pm    Post subject: Resolved ... Reply with quote

The problem is now resolved as of debianutils-2.14.1-r1.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum