sys-process/atop: Fixed init script for atop-2.2 (bug #553246).
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 2 Aug 2017 12:55:16 +0000 (14:55 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 2 Aug 2017 12:56:32 +0000 (14:56 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

sys-process/atop/files/atop.rc-r1

index e4d894e7328c2c3135bdc6959db8dc218ce9aaa6..c5172283a2121727b26c8535f7c2afc870bf9676 100644 (file)
@@ -1,14 +1,8 @@
 #!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 description="Resource-specific view of processes"
 pidfile="/var/run/atop.pid"
-command="/usr/bin/atop"
-
-start() {
-       ebegin "Starting atop"
-       start-stop-daemon --start --pidfile ${pidfile} \
-               --exec /etc/atop/atop.daily
-       eend $?
-}
+command="/etc/atop/atop.daily"
+command_background="true"