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.
Commit
a2585ea9add4fae704b8d384ffc4c94ec8e8194e1ad0aa76d29314557ce4a6f3
Parent
a31a717e177e9f8…
1 file changed
+15
| --- www/server/openbsd/fastcgi.md | ||
| +++ www/server/openbsd/fastcgi.md | ||
| @@ -92,10 +92,25 @@ | ||
| 92 | 92 | filesystem at startup: |
| 93 | 93 | |
| 94 | 94 | ```console |
| 95 | 95 | swap /var/www/dev mfs rw,-s=1048576 0 0 |
| 96 | 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 | |
| 97 | 112 | |
| 98 | 113 | The same user that executes the fossil binary must have writable access |
| 99 | 114 | to the repository directory that resides within the chroot; on OpenBSD |
| 100 | 115 | this is `www`. In addition, grant repository directory ownership to the |
| 101 | 116 | user who will push to, pull from, and create repositories. |
| 102 | 117 |
| --- 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 |