OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0b-159-g76de794

Gerrit Code Review gerrit@openafs.org
Sun, 20 Nov 2011 15:40:00 -0800 (PST)


The following commit has been merged in the openafs-stable-1_6_x branch:
commit 76de794826980a33ae44a27bda47a2e4c3962204
Author: Edward Z. Yang <ezyang@mit.edu>
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.
    (see http://www.kernel.org/doc/Documentation/cgroups/cgroups.txt)
    
    This change includes an openafs-client.service and
    openafs-server.service unit files for the client and server packages
    respectively.
    
    Client
    - 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
    http://docs.fedoraproject.org/en-US/Fedora/15/html/Deployment_Guide/sec-Persistent_Module_Loading.html
    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.
    
    Server
    - 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:
        http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
    
    Original version by Jonathan Billings <jsbillin@umich.edu>.
    
    Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
    
    Reviewed-on: http://gerrit.openafs.org/5637
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    Reviewed-by: Alex Chernyakhovsky <achernya@mit.edu>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    (cherry picked from commit 286ffa0d7c4d594ff107b70f9e930271c027a79e)
    
    Change-Id: I653b211ef24fb9010f0a8ff0ad70c11703a64e82
    Reviewed-on: http://gerrit.openafs.org/6089
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>

 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