Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rcorder(8)-ed startup script #629

Merged
merged 1 commit into from
Nov 20, 2023
Merged

rcorder(8)-ed startup script #629

merged 1 commit into from
Nov 20, 2023

Conversation

dsh2dsh
Copy link
Contributor

@dsh2dsh dsh2dsh commented Nov 11, 2023

With

bastille_enable="YES"
bastille_rcorder="YES"

in /etc/rc.conf, the script will start all jails, except jails with KEYWORD: nostart in jail.conf.

Example of jail.conf with KEYWORD: nostart:

# KEYWORD: nostart
jailname {
...
}

PROVIDE: is optional. Actually all rcorder(8) labels are optional, but we can use it to build jail dependencies. For instance, if we have jail db and jails alfa and zeta, we can configure it so both jails require jail db:

alfa/jail.conf:

# REQUIRE: db
alfa {
...
}

zeta/jail.conf:

# REQUIRE: db
zeta {
...
}

db/jail.conf:

# PROVIDE: db
db {
...
}

With this configuration jail db will start first and stop last.

With

```sh
bastille_enable="YES"
bastille_rcorder="YES"
```

in `/etc/rc.conf`, the script will the script will start all jails, except jails
with "KEYWORD: nostart" in jail.conf.

Example of `jail.conf` with `KEYWORD: nostart`:

```
jailname {
...
}
```

`PROVIDE:` is optional. Actually all `rcorder(8)` labels are optional, but we
can use it to build jail dependencies. For instance, if we have jail `db` and
jails `alfa` and `zeta`, we can configure it so both jails require jail `db`:

`alfa/jail.conf`:
```
alfa {
...
}
```

`zeta/jail.conf`:
```
zeta {
...
}
```

`db/jail.conf`:
```
db {
...
}
```

With this configuration jail `db` will start first and stop last.
@cedwards cedwards merged commit 51f9003 into BastilleBSD:master Nov 20, 2023
@cedwards
Copy link
Contributor

Thank you @dsh2dsh . Nice to see you again 😄 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants