systemd: RemainAfterExit in openafs-client.service
[openafs.git] / src / packaging / RedHat / openafs-client.service
1 [Unit]
2 Description=OpenAFS Client Service
3 Wants=network-online.target
4 After=syslog.target network-online.target
5 Before=remote-fs.target
6
7 [Service]
8 Type=forking
9 RemainAfterExit=true
10 EnvironmentFile=/etc/sysconfig/openafs
11 ExecStartPre=/bin/sed -n 'w/usr/vice/etc/CellServDB' /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
12 ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB
13 ExecStartPre=/sbin/modprobe openafs
14 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS
15 ExecStop=/bin/umount /afs
16 ExecStop=/usr/vice/etc/afsd -shutdown
17 ExecStop=/sbin/rmmod openafs
18 KillMode=none
19
20 [Install]
21 WantedBy=multi-user.target remote-fs.target