OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1811-g286ffa0
Gerrit Code Review
Thu, 27 Oct 2011 16:55:35 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Edward Z. Yang <firstname.lastname@example.org>
Date: Mon Oct 17 23:16:15 2011 -0400
linux: Update Packaging to build OpenAFS services for Fedora's systemd
Fedora 15 now uses systemd (see http://fedoraproject.org/wiki/Systemd)
for the OS init system. While it currently has backwards
compatibility with older SysV-style init scripts, future versions of
Fedora may no longer support it, and OS startup tends to be faster
with the systemd service units. Also, systemd runs all the service's
processes within a linux kernel cgroup.
This change includes an openafs-client.service and
openafs-server.service unit files for the client and server packages
- Loading the openafs module was moved into
/etc/sysconfig/modules/openafs-client.modules. This causes the OS to
load the module on boot. This is the preferred way for modules to be
loaded with Fedora. (See
for more details)
- The CellServDB file is generated with sed rather than cat.
This change was made because Systemd doesn't execute as a shell
script, but rather executes processes directly. Rather than invoking
a shell to concatenate the CellServDB.* files, they're written to the
CellServDB file using a sed oneliner.
- Do all of the proper kernel module loading and unloading.
- Since systemd uses cgroups, when the service is shut down, all
processes in the openafs-server.service cgroup will be terminated.
The other changes are standard as per:
Original version by Jonathan Billings <email@example.com>.
Signed-off-by: Edward Z. Yang <firstname.lastname@example.org>
Reviewed-by: Derrick Brashear <email@example.com>
Reviewed-by: Alex Chernyakhovsky <firstname.lastname@example.org>
Tested-by: BuildBot <email@example.com>
src/packaging/RedHat/openafs-client.modules | 4 +
src/packaging/RedHat/openafs-client.service | 18 +++++
src/packaging/RedHat/openafs-server.service | 11 +++
src/packaging/RedHat/openafs.spec.in | 105 ++++++++++++++++++++++++++-
4 files changed, 137 insertions(+), 1 deletions(-)
OpenAFS Master Repository