Accepting request 215092 from Base:System

- Fixed leaking the exit code of systemctl in atd.sh. A change 
  to at.sleep prevents leaking systemctl exit code as well as 
  simplifies the script.

OBS-URL: https://build.opensuse.org/request/show/215092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/at?expand=0&rev=59
This commit is contained in:
Tomáš Chvátal 2014-01-27 10:43:20 +00:00 committed by Git OBS Bridge
commit 8c31dfb902
3 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jan 23 21:15:53 UTC 2014 - aj@ajaissle.de
- Fixed leaking the exit code of systemctl in atd.sh. A change
to at.sleep prevents leaking systemctl exit code as well as
simplifies the script.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 12 15:37:29 UTC 2013 - mvyskocil@suse.com Tue Nov 12 15:37:29 UTC 2013 - mvyskocil@suse.com

View File

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

View File

@ -1,7 +1,7 @@
# #
# spec file for package at # spec file for package at
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed