mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 01:26:38 +02:00
23 lines
583 B
Bash
23 lines
583 B
Bash
#!/sbin/openrc-run
|
|
# Copyright 1999-2005 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-process/atop/files/atop.rc,v 1.1 2005/06/14 23:01:10 vapier Exp $
|
|
|
|
pidfile="/var/run/atop.pid"
|
|
|
|
_daily=/etc/periodic/daily/atop
|
|
start(){
|
|
ebegin "Starting atop"
|
|
if [ -f "$_daily" ] ; then
|
|
start-stop-daemon --start --quiet --pidfile "$pidfile" --exec "$_daily"
|
|
eend $?
|
|
else
|
|
eend 1 "/etc/cron.d/atop doesnt exist!"
|
|
fi
|
|
}
|
|
|
|
stop(){
|
|
ebegin "Stopping atop"
|
|
start-stop-daemon --stop --pidfile "$pidfile"
|
|
eend $?
|
|
}
|