Skip to content

Commit 12183a8

Browse files
authored
Merge pull request #58 from carpentriesoffline/jsteyn-patch-2
Update miniHPC_step_by_step.md
2 parents 60fd54a + 37d77a0 commit 12183a8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

miniHPC_step_by_step.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -271,25 +271,33 @@ Create a script that can be run by systemd on bootup. In /usr/local/bin/cvfms-st
271271
#!/bin/bash
272272
273273
/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
275276
```
276277

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:
278279
```
279280
[Unit]
280281
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
283285
284286
[Service]
285287
Type=oneshot
286288
ExecStart=/usr/local/bin/cvmfs-setup.sh
287-
RemainAfterExit=yes
288289
289290
[Install]
290291
WantedBy=multi-user.target
291292
```
292293

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+
293301
Enable and start the service:
294302
```
295303
sudo systemctl enable cvmfs.service

0 commit comments

Comments
 (0)