source: trunk/server/common/patches/openafs-systemd.patch @ 2170

Last change on this file since 2170 was 2165, checked in by ezyang, 13 years ago
Add OpenAFS to the dependencies of remote-fs.
File size: 1.6 KB
  • new file src/packaging/RedHat/openafs-client.modules

    diff --git a/src/packaging/RedHat/openafs-client.modules b/src/packaging/RedHat/openafs-client.modules
    new file mode 100644
    index 0000000..055d117
    - +  
     1#!/bin/sh
     2
     3# Load the OpenAFS kernel module at boot
     4exec /sbin/modprobe openafs
  • new file src/packaging/RedHat/openafs-client.service

    diff --git a/src/packaging/RedHat/openafs-client.service b/src/packaging/RedHat/openafs-client.service
    new file mode 100644
    index 0000000..bc95057
    - +  
     1[Unit]
     2Description=OpenAFS Client Service
     3After=syslog.target network.target
     4
     5[Service]
     6Type=forking
     7EnvironmentFile=/etc/sysconfig/openafs
     8ExecStartPre=/bin/sed -n 'w/usr/vice/etc/CellServDB' /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
     9ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB
     10ExecStartPre=/sbin/modprobe openafs
     11ExecStart=/usr/vice/etc/afsd $AFSD_ARGS
     12ExecStop=/bin/umount /afs
     13ExecStop=/usr/vice/etc/afsd -shutdown
     14ExecStop=/sbin/rmmod openafs
     15KillMode=none
     16
     17[Install]
     18WantedBy=multi-user.target remote-fs.target
  • new file src/packaging/RedHat/openafs-server.service

    diff --git a/src/packaging/RedHat/openafs-server.service b/src/packaging/RedHat/openafs-server.service
    new file mode 100644
    index 0000000..2d34bb0
    - +  
     1[Unit]
     2Description=OpenAFS Server Service
     3After=syslog.target network.target
     4
     5[Service]
     6EnvironmentFile=-/etc/sysconfig/openafs
     7ExecStart=/usr/afs/bin/bosserver $BOSSERVER_ARGS
     8ExecStop=/usr/bin/bos shutdown localhost -wait -localauth
     9
     10[Install]
     11WantedBy=multi-user.target
Note: See TracBrowser for help on using the repository browser.