2 Description=OpenAFS Client Service
3 Wants=network-online.target
4 After=syslog.target network-online.target
5 Before=remote-fs.target
10 EnvironmentFile=/etc/sysconfig/openafs
11 ExecStartPre=/bin/bash -c "fs sysname > /dev/null 2>/dev/null; test $? -ne 0 || (echo AFS client appears to be running -- not starting && exit 1)"
12 ExecStartPre=/bin/sed -n 'w/usr/vice/etc/CellServDB' /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
13 ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB
14 ExecStartPre=/sbin/modprobe openafs
15 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS
16 ExecStop=/bin/umount /afs
17 ExecStop=/usr/vice/etc/afsd -shutdown
18 ExecStop=/sbin/rmmod openafs
22 WantedBy=multi-user.target remote-fs.target