Skip to content

Commit a371c94

Browse files
Systemdify yum plugin
It eats everything.
1 parent c0f8d0b commit a371c94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SOURCES/yum_update-motd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
def posttrans_hook(conduit):
2121
try:
2222
if not os.path.exists('/var/lib/update-motd/disabled'):
23-
subprocess.Popen(['/sbin/start', '--quiet', 'update-motd'], stdout=open('/dev/null', 'w'), stderr=subprocess.STDOUT)
23+
subprocess.Popen(['/usr/bin/systemctl', 'try-restart', '--quiet', 'update-motd'], stdout=open('/dev/null', 'w'), stderr=subprocess.STDOUT)
2424
except:
2525
return

SPECS/update-motd.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: update-motd
2-
Version: 1.0.1
3-
Release: 3%{?dist}
2+
Version: 1.1.0
3+
Release: 1%{?dist}
44
License: ASL 2.0
55
Summary: Framework for dynamically generating MOTD
66
Group: System Environment/Base

0 commit comments

Comments
 (0)