Fossil SCM

Add missed instructions to edit rc.local with commands to automate device node creation at startup as identified by ams on the forum.

jamsek 2020-08-09 08:11 trunk
Commit a2585ea9add4fae704b8d384ffc4c94ec8e8194e1ad0aa76d29314557ce4a6f3
--- www/server/openbsd/fastcgi.md
+++ www/server/openbsd/fastcgi.md
@@ -92,10 +92,25 @@
9292
filesystem at startup:
9393
9494
```console
9595
swap /var/www/dev mfs rw,-s=1048576 0 0
9696
```
97
+
98
+Then add the following to [`/etc/rc.local(8)`][rc.local] to automate
99
+creation of the `random` and `null` device files.
100
+
101
+```
102
+echo -n "[!] create device nodes: /var/www/dev/{urandom,null}"
103
+cwd=$(pwd)
104
+cd /var/www/dev
105
+/dev/MAKEDEV urandom
106
+mknod -m 666 null c 2 2
107
+cd $cwd
108
+echo "."
109
+```
110
+
111
+[rc.local]: https://man.openbsd.org/rc.conf.local.8
97112
98113
The same user that executes the fossil binary must have writable access
99114
to the repository directory that resides within the chroot; on OpenBSD
100115
this is `www`. In addition, grant repository directory ownership to the
101116
user who will push to, pull from, and create repositories.
102117
--- www/server/openbsd/fastcgi.md
+++ www/server/openbsd/fastcgi.md
@@ -92,10 +92,25 @@
92 filesystem at startup:
93
94 ```console
95 swap /var/www/dev mfs rw,-s=1048576 0 0
96 ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
98 The same user that executes the fossil binary must have writable access
99 to the repository directory that resides within the chroot; on OpenBSD
100 this is `www`. In addition, grant repository directory ownership to the
101 user who will push to, pull from, and create repositories.
102
--- www/server/openbsd/fastcgi.md
+++ www/server/openbsd/fastcgi.md
@@ -92,10 +92,25 @@
92 filesystem at startup:
93
94 ```console
95 swap /var/www/dev mfs rw,-s=1048576 0 0
96 ```
97
98 Then add the following to [`/etc/rc.local(8)`][rc.local] to automate
99 creation of the `random` and `null` device files.
100
101 ```
102 echo -n "[!] create device nodes: /var/www/dev/{urandom,null}"
103 cwd=$(pwd)
104 cd /var/www/dev
105 /dev/MAKEDEV urandom
106 mknod -m 666 null c 2 2
107 cd $cwd
108 echo "."
109 ```
110
111 [rc.local]: https://man.openbsd.org/rc.conf.local.8
112
113 The same user that executes the fossil binary must have writable access
114 to the repository directory that resides within the chroot; on OpenBSD
115 this is `www`. In addition, grant repository directory ownership to the
116 user who will push to, pull from, and create repositories.
117

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button