On Nov 10, 2012, at 01:56 , Ken Dreyer wrote: > Fedora has switched to systemd for service management. A year ago, > Edward Yang contributed systemd unit files for OpenAFS.org under > /src/packaging/RedHat.
[...] > Jack and I have come up with a solution to support post-init scripts > in systemd. We ship a single file, /usr/libexec/openafs/posthooks.sh, > which runs in openafs-client.service like this: > > ExecStartPost=/usr/libexec/openafs/posthooks.sh > > This shell script sources any shell scripts in > /etc/openafs/posthooks.d . This allows us to ship small shell scripts > that enable encryption, set the sysname, etc. It also provides an area > for users to drop in any additional posthooks that they want to use. > Also, users could just zero out the files if they want to disable them > (similar to /etc/httpd/conf.d). > > I think this is useful and could go upstream into the openafs.org > packages. Any comments or suggestions on this idea? Makes perfect sense to me. How about generalizing ExecStartPre and ExecStop in a similar fashion? It may be a good idea to make the order of execution well defined, by exporting LANG=C in *hooks.sh (or the sysconfig file, if that's actually sourced first - I admit I still have to learn about how systemd works). - Stephan -- Stephan Wiesand DESY -DV- Platanenenallee 6 15738 Zeuthen, Germany _______________________________________________ OpenAFS-info mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-info
