#!/bin/sh if systemctl --quiet is-enabled atd; then case $1/$2 in pre/*) systemctl stop atd ;; post/*) systemctl restart atd ;; esac fi