There were messages like the following in system log after at daemon was disabled: 2014-01-03T09:19:51.172618+01:00 fmn systemd-sleep[13167]: /usr/lib/systemd/system-sleep/atd.sh exited with exit status 1. These are a result of the atd.sh script leaking the exit code of systemctl. This change to at.sleep prevents leaking systemctl exit code as well as simplifies the script. OBS-URL: https://build.opensuse.org/request/show/213467 OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=74
13 lines
173 B
Bash
13 lines
173 B
Bash
#!/bin/sh
|
|
|
|
if systemctl --quiet is-enabled atd; then
|
|
case $1/$2 in
|
|
pre/*)
|
|
systemctl stop atd
|
|
;;
|
|
post/*)
|
|
systemctl restart atd
|
|
;;
|
|
esac
|
|
fi
|