Used in a Sentence

subr

Definition, parts of speech, synonyms, and sentence examples for subr.

Editorial note

* Slackware doesn't include an equivalent to /etc/rc.d/rc.subr, which means there's a lot of boilerplate in its initscripts.

Examples13
Definitions1
Parts of speech1

Quick take

(algebra) A ring which is contained in a larger ring, such that the multiplication and addition on the former are a restriction of those on the latter. When rings are required to have a multiplicative identity (as is standard in most branches of algebra), the subring must also have the same multiplicative identity as the larger ring.

Meaning at a glance

The clearest senses and uses of subr gathered in one view.

noun

(algebra) A ring which is contained in a larger ring, such that the multiplication and addition on the former are a restriction of those on the latter. When rings are required to have a multiplicative identity (as is standard in most branches of algebra), the subring must also have the same multiplicative identity as the larger ring.

Definitions

Core meanings and parts of speech for subr.

noun

(algebra) A ring which is contained in a larger ring, such that the multiplication and addition on the former are a restriction of those on the latter. When rings are required to have a multiplicative identity (as is standard in most branches of algebra), the subring must also have the same multiplicative identity as the larger ring.

Example sentences

1

* Slackware doesn't include an equivalent to /etc/rc.d/rc.subr, which means there's a lot of boilerplate in its initscripts.

2

Their rc system is great and includes vastly simplified scripts using rc.subr, while still keeping everything as shell scripts.

3

To override the default value, an rc.d script has to redefine this variable after sourcing rc.subr.

4

As several others have noted, the code duplication issue is solved in FreeBSD's init(8) with rc.subr.

5

If you'd like to know what that does, you can just look up the bash source of `/etc/rc.d/rc.subr`, another bash script.

6

So does FreeBSD's rc system with rc.subr and it's far simpler IMO.

7

Set the $daemon variable, source in rc.subr, call rc_cmd, done.

8

See run_rc_script on the rc.subr(8) manual page for details.

9

Except that rc.subr is shell scripting alone.

10

> If you'd like to know what that does, you can just look up the bash source of `/etc/rc.d/rc.subr`, another bash script.

11

And if that's not enough for whatever reason, it's easy to add more functionality either to the individual initscript or to rc.subr, since it's shell scripts all the way down.

12

If duplicate code bothers you this much, then what stops you from abstracting the common routines into something like BSD's /etc/rc.subr, and then sourcing them in the service-specific init script?

Quote examples

1

FreeBSD removed the "crud" by standardizing all of the tasks people want to do into rc.subr.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use subr in a sentence?

* Slackware doesn't include an equivalent to /etc/rc.d/rc.subr, which means there's a lot of boilerplate in its initscripts.

What does subr mean?

(algebra) A ring which is contained in a larger ring, such that the multiplication and addition on the former are a restriction of those on the latter. When rings are required to have a multiplicative identity (as is standard in most branches of algebra), the subring must also have the same multiplicative identity as the larger ring.

What part of speech is subr?

subr is commonly used as noun.