Skip to content

Commit

Permalink
Tweak FreeBSD install instruction (#329)
Browse files Browse the repository at this point in the history
* Add missing files
* Update contrib/freebsd-rc/readme

---------

Co-authored-by: iacore <[email protected]>
  • Loading branch information
iacore and iacore authored May 8, 2024
1 parent 88f0550 commit 016f3fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions contrib/freebsd-rc/README
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
Support files for launching dinit from /etc/rc.d/ on FreeBSD

To install dinit on FreeBSD, run the following commands as root:

```
# Build dinit with correct path
# (Optional) Install build dependencies
pkg install -y meson rsync

# Build dinit with correct path
pushd ../..
meson setup -Ddinit-control-socket-path=/var/run/dinitctl build2
cd build2
ninja install
popd

# Install rc.d
cp tree/etc/rc.d/dinit /etc/rc.d/dinit
cp tree/usr/sbin/dinitd /usr/sbin/dinitd
# Install dinit as rc.d service
rsync -r tree/ /
mkdir -p /etc/dinit.d/boot.d

# enable dinit (to start on next boot)
/etc/rc.d/dinit enable
Expand Down
4 changes: 4 additions & 0 deletions contrib/freebsd-rc/tree/etc/dinit.d/boot
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# The primary service

type = internal
waits-for.d = boot.d

0 comments on commit 016f3fb

Please sign in to comment.