File: atop-pm.sh

package info (click to toggle)
atop 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,692 kB
  • sloc: ansic: 20,731; python: 253; sh: 220; makefile: 170
file content (14 lines) | stat: -rwxr-xr-x 166 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

PATH=/sbin:/usr/sbin:/bin:/usr/bin

case "$1" in
	pre)	systemctl stop atop
		exit 0
		;;
	post)	systemctl start atop
		exit 0
		;;
 	*)	exit 1
		;;
esac