"Fossies" - the Fresh Open Source Software Archive

Member "atop-2.8.1/atop-pm.sh" (7 Jan 2023, 146 Bytes) of package /linux/misc/atop-2.8.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "atop-pm.sh": 2.5.0_vs_2.6.0.

    1 #!/bin/sh
    2 
    3 case "$1" in
    4     pre)    /usr/bin/systemctl stop atop
    5         exit 0
    6         ;;
    7     post)   /usr/bin/systemctl start atop
    8         exit 0
    9         ;;
   10     *)  exit 1
   11         ;;
   12 esac