[Unit] Description=OpenAFS Client Service After=network.target remote-fs.target nss-lookup.target [Service] Type=oneshot ExecStartPre=/bin/sh -c "/bin/mkdir -p $(cut -d : -f 2 /etc/openafs/cacheinfo)" ExecStartPre=/sbin/modprobe libafs ExecStart=/usr/sbin/afsd $AFSD_ARGS $AFSD_CACHE_ARGS ExecStop=/bin/umount /afs ExecStopPost=/usr/sbin/afsd -shutdown ExecStopPost=/sbin/rmmod libafs KillMode=none RemainAfterExit=yes [Install] WantedBy=multi-user.target remote-fs.target