diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 12:30:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 12:30:44 +0100 |
commit | 233f353a2201e58d3861390be579f87097f05eb3 (patch) | |
tree | a673a1272068befc1f756fe9c3dd1eb1313282ed /src/core/triggers.systemd.in | |
parent | e492fa402c0479b7898a3cc646bcbd6ac5162311 (diff) | |
parent | 873e413323dfff4023604849c70944674ae5cd29 (diff) |
Merge pull request #1909 from keszybz/filetriggers-v2
Move daemon-reload from package %post scripts to file triggers
Diffstat (limited to 'src/core/triggers.systemd.in')
-rw-r--r-- | src/core/triggers.systemd.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/triggers.systemd.in b/src/core/triggers.systemd.in new file mode 100644 index 0000000000..141f42dbcf --- /dev/null +++ b/src/core/triggers.systemd.in @@ -0,0 +1,26 @@ +# -*- Mode: rpm-spec; indent-tabs-mode: nil -*- */ +# +# This file is part of systemd. +# +# Copyright 2015 Zbigniew Jędrzejewski-Szmek +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# systemd is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with systemd; If not, see <http://www.gnu.org/licenses/>. + +# The contents of this are an example to be copied into systemd.spec. + +%transfiletriggerin -- @systemunitdir@ /etc/systemd/system +systemctl daemon-reload &>/dev/null || : + +%transfiletriggerun -- @systemunitdir@ /etc/systemd/system +systemctl daemon-reload &>/dev/null || : |