File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -271,25 +271,33 @@ Create a script that can be run by systemd on bootup. In /usr/local/bin/cvfms-st
271
271
#!/bin/bash
272
272
273
273
/usr/sbin/losetup /dev/loop0 /sharedfs/loopdevices/${HOSTNAME}
274
- /bin/mount /dev/loop0 /var/lib/cvmfs
274
+ /bin/mount -o loop /dev/loop0 /var/lib/cvmfs
275
+ cvmfs_config reload
275
276
```
276
277
277
- Create the following systemd service script in /etc /systemd/system/cvfms .service:
278
+ Create the following systemd service script in /lib /systemd/system/cvmfs .service:
278
279
```
279
280
[Unit]
280
281
Description=Setup Loop Device and Mount Shared Filesystem
281
- After=local-fs.target
282
- Requires=local-fs.target
282
+ After=udev.service
283
+ After=mountkernfs.service
284
+ After=remote-fs.target
283
285
284
286
[Service]
285
287
Type=oneshot
286
288
ExecStart=/usr/local/bin/cvmfs-setup.sh
287
- RemainAfterExit=yes
288
289
289
290
[Install]
290
291
WantedBy=multi-user.target
291
292
```
292
293
294
+ Create a symbolic link in /etc/systemd/system to /lib/systemd/system/cvmfs.service:
295
+
296
+ ```
297
+ cd /etc/systemd/system
298
+ sudo ln -s /lib/systemd/system/cvmfs.service cvmfs.service
299
+ ```
300
+
293
301
Enable and start the service:
294
302
```
295
303
sudo systemctl enable cvmfs.service
You can’t perform that action at this time.
0 commit comments