From 015d3b1635e9b953a26a11f774c64941d4952de428ab5cab74617f325283fb9f Mon Sep 17 00:00:00 2001 From: Christof Hanke Date: Thu, 2 May 2019 18:14:05 +0000 Subject: [PATCH] make openafs-clien and openafs-fuse-client more consistent OBS-URL: https://build.opensuse.org/package/show/filesystems/openafs?expand=0&rev=41 --- openafs-fuse-client.service | 3 ++- sysconfig.openafs-client | 1 - sysconfig.openafs-fuse-client | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 sysconfig.openafs-fuse-client diff --git a/openafs-fuse-client.service b/openafs-fuse-client.service index 38dded1..3a339e4 100644 --- a/openafs-fuse-client.service +++ b/openafs-fuse-client.service @@ -8,8 +8,9 @@ Before=remote-fs.target Type=forking RemainAfterExit=true EnvironmentFile=/etc/sysconfig/openafs-fuse-client -ExecStartPre=/bin/chmod 0644 /etc/openafs/CellServDB ExecStart=/usr/sbin/afsd.fuse $AFSD_ARGS +ExecStartPost=/usr/bin/fs sysname $SYSNAME +ExecStartPost=/usr/bin/fs setcrypt $CRYPT ExecStop=/usr/bin/umount /afs ExecStop=/usr/sbin/afsd.fuse -shutdown KillMode=none diff --git a/sysconfig.openafs-client b/sysconfig.openafs-client index f39a5de..06ff3d3 100644 --- a/sysconfig.openafs-client +++ b/sysconfig.openafs-client @@ -4,7 +4,6 @@ AFSD_ARGS="-fakestat -memcache -blocks 102400 -dynroot -afsdb" - # # sysname to set after startup # leave empty for default setting. diff --git a/sysconfig.openafs-fuse-client b/sysconfig.openafs-fuse-client new file mode 100644 index 0000000..06ff3d3 --- /dev/null +++ b/sysconfig.openafs-fuse-client @@ -0,0 +1,17 @@ +# +# startup options for the openAFS client. +# see man afsd for details + +AFSD_ARGS="-fakestat -memcache -blocks 102400 -dynroot -afsdb" + +# +# sysname to set after startup +# leave empty for default setting. + +SYSNAME="" + +# +# switch for encryption to be set after startup +# must be one of "on" or "off" + +CRYPT="on"