source:
trunk/server/common/patches/openafs-systemd.patch
@
2132
Last change on this file since 2132 was 2066, checked in by achernya, 13 years ago | |
---|---|
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 4 exec /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] 2 Description=OpenAFS Client Service 3 After=syslog.target network.target 4 5 [Service] 6 Type=forking 7 EnvironmentFile=/etc/sysconfig/openafs 8 ExecStartPre=/bin/sed -n 'w/usr/vice/etc/CellServDB' /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist 9 ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB 10 ExecStartPre=/sbin/modprobe openafs 11 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS 12 ExecStop=/bin/umount /afs 13 ExecStop=/usr/vice/etc/afsd -shutdown 14 ExecStop=/sbin/rmmod openafs 15 KillMode=none 16 17 [Install] 18 WantedBy=multi-user.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] 2 Description=OpenAFS Server Service 3 After=syslog.target network.target 4 5 [Service] 6 EnvironmentFile=-/etc/sysconfig/openafs 7 ExecStart=/usr/afs/bin/bosserver $BOSSERVER_ARGS 8 ExecStop=/usr/bin/bos shutdown localhost -wait -localauth 9 10 [Install] 11 WantedBy=multi-user.target
Note: See TracBrowser
for help on using the repository browser.