aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-06-14 16:54:50 +0200
committerBill Nottingham <notting@redhat.com>2012-06-26 15:56:32 -0400
commit5d91d38c8c9b81db56dcd94cf5c470b0dce68da0 (patch)
tree63c0e714f6aa6e22eb8e598cbdc40ceb374c921e /initscripts.spec
parent69ead9bb4b8ec2e45dca84b9904bc04b03666c46 (diff)
downloadinitscripts-5d91d38c8c9b81db56dcd94cf5c470b0dce68da0.tar
initscripts-5d91d38c8c9b81db56dcd94cf5c470b0dce68da0.tar.gz
initscripts-5d91d38c8c9b81db56dcd94cf5c470b0dce68da0.tar.bz2
initscripts-5d91d38c8c9b81db56dcd94cf5c470b0dce68da0.tar.xz
initscripts-5d91d38c8c9b81db56dcd94cf5c470b0dce68da0.zip
service: add support for legacy custom actions
This adds support for legacy initscript actions such as service iptables save Packages wishing to provide legacy actions should install programs (probably scripts, but could be binaries) named /usr/libexec/initscripts/legacy-actions/<service>/<action> It should be emphasized that this feature is meant to be used only in packages where compatibility of custom actions with previous releases is desired. Adding of entirely new actions is discouraged. Useful tools should be shipped by upstreams as programs in /usr/bin, not in distro-specific hacks. [ Modifications from original : change from /usr/lib to /usr/libexec - notting ] https://bugzilla.redhat.com/show_bug.cgi?id=796663
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec1
1 files changed, 1 insertions, 0 deletions
diff --git a/initscripts.spec b/initscripts.spec
index e57e71dd..128c2b2c 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -285,6 +285,7 @@ rm -rf $RPM_BUILD_ROOT
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/crypttab
%dir /etc/tmpfiles.d
/etc/tmpfiles.d/initscripts.conf
+%dir /usr/libexec/initscripts/legacy-actions
%files legacy
%defattr(-,root,root)