Description: install and use script in /usr/share/atop
Author: Marc Haber <mh+debian-packages@zugschlus.de>
Forwarded: no
Last-Update: 2016-08-07
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ DESTDIR  =
 
 BINPATH  = /usr/bin
 SBINPATH = /usr/sbin
-SCRPATH  = /etc/atop
+SCRPATH  = /usr/share/atop
 LOGPATH  = /var/log/atop
 MAN1PATH = /usr/share/man/man1
 MAN5PATH = /usr/share/man/man5
--- a/atop.cronsysv
+++ b/atop.cronsysv
@@ -1,2 +1,2 @@
 # daily restart of atop at midnight
-0 0 * * * root /etc/atop/atop.daily&
+0 0 * * * root /usr/share/atop/atop.daily&
--- a/atop.init
+++ b/atop.init
@@ -33,7 +33,7 @@ case "$1" in
 		:
 	else
 		# Start atop
-		/etc/atop/atop.daily&
+		/usr/share/atop/atop.daily&
 	fi
 	touch /var/lock/subsys/atop
 	;;
@@ -68,11 +68,11 @@ case "$1" in
 	;;
 
   reload)
-	/etc/atop/atop.daily&
+	/usr/share/atop/atop.daily&
 	;;
 
   restart|force-reload)
-	/etc/atop/atop.daily&
+	/usr/share/atop/atop.daily&
 	;;
 
   *)
--- a/atop.service
+++ b/atop.service
@@ -4,7 +4,7 @@ Documentation=man:atop(1)
 
 [Service]
 Type=simple
-ExecStart=/etc/atop/atop.daily
+ExecStart=/usr/share/atop/atop.daily
 KillSignal=SIGUSR2
 #ExecStopPost=/usr/bin/sleep 3
 
--- a/man/atop.1
+++ b/man/atop.1
@@ -822,7 +822,7 @@ When
 is installed, the script
 .B atop.daily
 is stored in the
-.I /etc/atop
+.I /usr/share/atop
 directory.
 This scripts takes care that
 .B atop
@@ -838,7 +838,7 @@ daemon using the file
 .I /etc/cron.d/atop
 with the contents
 .br
-.B \ \ \ \ \ \ \ \ 0 0 * * * root /etc/atop/atop.daily
+.B \ \ \ \ \ \ \ \ 0 0 * * * root /usr/share/atop/atop.daily
 .PP
 When the package
 .B psacct
--- a/psaccu_atop
+++ b/psaccu_atop
@@ -17,7 +17,7 @@
 	    then
 	        :
 	    else
-	        /etc/atop/atop.daily&
+	        /usr/share/atop/atop.daily&
 	    fi
 	fi
     endscript
