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:
commit
8c31dfb902
@ -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
|
||||
|
||||
|
19
at.sleep
19
at.sleep
@ -1,9 +1,12 @@
|
||||
#!/bin/sh
|
||||
case $1/$2 in
|
||||
pre/*)
|
||||
systemctl --quiet is-enabled atd && systemctl stop atd
|
||||
;;
|
||||
post/*)
|
||||
systemctl --quiet is-enabled atd && systemctl restart atd
|
||||
;;
|
||||
esac
|
||||
|
||||
if systemctl --quiet is-enabled atd; then
|
||||
case $1/$2 in
|
||||
pre/*)
|
||||
systemctl stop atd
|
||||
;;
|
||||
post/*)
|
||||
systemctl restart atd
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
2
at.spec
2
at.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
|
Loading…
x
Reference in New Issue
Block a user