Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699518 - sys-process/atop-2.5.0: init script is broken
Summary: sys-process/atop-2.5.0: init script is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 08:07 UTC by Ortwin Glueck
Modified: 2019-11-07 08:21 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 Ortwin Glueck 2019-11-07 08:07:11 UTC
The command path is wrong. Hence atop cron jobs no longer work.

/etc/init.d/atop:
 command="/usr/share/atop/atop.daily"

equery f atop | grep atop.daily:
 /usr/share/doc/atop-2.5.0/atop.daily



Reproducible: Always

Steps to Reproduce:
/etc/init.d/atop restart
Actual Results:  
 * Starting atop ...
 * start-stop-daemon: /usr/share/atop/atop.daily does not exist
 * Failed to start atop                                                                                            [ !! ]
 * ERROR: atop failed to start



atop-2.4 installed atop.daily in the correct path and not as doc. A good location for the executable could also be /usr/libexec/atop if you don't like /usr/share.
Comment 1 Larry the Git Cow gentoo-dev 2019-11-07 08:21:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62f944f1fcfe7bb6942ca87250ebbd658153034c

commit 62f944f1fcfe7bb6942ca87250ebbd658153034c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-11-07 08:19:06 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-11-07 08:20:29 +0000

    sys-process/atop: Revbump to fix atop.daily install location
    
    Thanks-to: Ortwin Glueck <odi@odi.ch>
    Closes: https://bugs.gentoo.org/699518
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-process/atop/{atop-2.5.0.ebuild => atop-2.5.0-r1.ebuild} | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)