Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/articlesrc-scripting_index/pl/units/?format=api&page=4
{ "count": 215, "next": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/units/?format=api&page=5", "previous": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/units/?format=api&page=3", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "To illustrate this opportunity, let us modify the primitive dummy script so that its messages depend on the additional arguments supplied. Here we go:" ], "previous_source": "", "target": [ "" ], "id_hash": -3644774056489274936, "content_hash": -3644774056489274936, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:751", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 159, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/611762/?format=api", "priority": 100, "id": 1514709, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=4d6b294e7465b1c8", "url": "https://translate-dev.freebsd.org/api/units/1514709/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.091064Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "name=\"dummy\"\nstart_cmd=\"${name}_start\"\nstop_cmd=\":\"\nkiss_cmd=\"${name}_kiss\"\nextra_commands=\"kiss\"\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3280706216413441534, "content_hash": -3280706216413441534, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:763", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 160, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/381949/?format=api", "priority": 100, "id": 1514710, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=52789713fe42d202", "url": "https://translate-dev.freebsd.org/api/units/1514710/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.093939Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "dummy_start()\n{\n if [ $# -gt 0 ]; then <.>\n echo \"Greeting message: $*\"\n else\n echo \"Nothing started.\"\n fi\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2358626471862478352, "content_hash": -2358626471862478352, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:772", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 161, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/381951/?format=api", "priority": 100, "id": 1514711, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=5f4479b86acdd9f0", "url": "https://translate-dev.freebsd.org/api/units/1514711/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.096568Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "dummy_kiss()\n{\n echo -n \"A ghost gives you a kiss\"\n if [ $# -gt 0 ]; then <.>\n echo -n \" and whispers: $*\"\n fi\n case \"$*\" in\n *[.!?])\n echo\n ;;\n *)\n echo .\n ;;\n esac\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -9120050347709245893, "content_hash": -9120050347709245893, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:788", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 162, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/381953/?format=api", "priority": 100, "id": 1514712, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=016f1287631cd63b", "url": "https://translate-dev.freebsd.org/api/units/1514712/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.099466Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "load_rc_config $name\nrun_rc_command \"$@\" <.>\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3561034637435717348, "content_hash": -3561034637435717348, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:791", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 163, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/381955/?format=api", "priority": 100, "id": 1514713, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=4e94a9dd4ac8391c", "url": "https://translate-dev.freebsd.org/api/units/1514713/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.102374Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "What essential changes can we notice in the script?" ], "previous_source": "", "target": [ "" ], "id_hash": -7374832491025990193, "content_hash": -7374832491025990193, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:794", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 164, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/381957/?format=api", "priority": 100, "id": 1514714, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=19a754ec4662fdcf", "url": "https://translate-dev.freebsd.org/api/units/1514714/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.105074Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "➊ All arguments you type after `start` can end up as positional parameters to the respective method. We can use them in any way according to our task, skills, and fancy. In the current example, we just pass all of them to man:echo[1] as one string in the next line - note `$*` within the double quotes. Here is how the script can be invoked now:" ], "previous_source": "", "target": [ "" ], "id_hash": 6390877474990004781, "content_hash": 6390877474990004781, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:799", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 165, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/611764/?format=api", "priority": 100, "id": 1514715, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=d8b0f53403d31a2d", "url": "https://translate-dev.freebsd.org/api/units/1514715/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.107827Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "# /etc/rc.d/dummy start\nNothing started.\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7652410571177859596, "content_hash": 7652410571177859596, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:804", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 166, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/381961/?format=api", "priority": 100, "id": 1514716, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=ea32d2deca801a0c", "url": "https://translate-dev.freebsd.org/api/units/1514716/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.139374Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "# /etc/rc.d/dummy start Hello world!\nGreeting message: Hello world!\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8785274708804905865, "content_hash": -8785274708804905865, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:807", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 167, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/381963/?format=api", "priority": 100, "id": 1514717, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=06146f32df75d477", "url": "https://translate-dev.freebsd.org/api/units/1514717/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.142975Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "➋ The same applies to any method our script provides, not only to a standard one. We have added a custom method named `kiss`, and it can take advantage of the extra arguments not less than `start` does. E.g.:" ], "previous_source": "", "target": [ "" ], "id_hash": -7546667965246347340, "content_hash": -7546667965246347340, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:811", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 168, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/611766/?format=api", "priority": 100, "id": 1514718, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=1744d97835abe7b4", "url": "https://translate-dev.freebsd.org/api/units/1514718/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.146384Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "# /etc/rc.d/dummy kiss\nA ghost gives you a kiss.\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3564866647900237951, "content_hash": 3564866647900237951, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:816", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 169, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/381967/?format=api", "priority": 100, "id": 1514719, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=b178f3542bbb307f", "url": "https://translate-dev.freebsd.org/api/units/1514719/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.150118Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "# /etc/rc.d/dummy kiss Once I was Etaoin Shrdlu...\nA ghost gives you a kiss and whispers: Once I was Etaoin Shrdlu...\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7890460369645563322, "content_hash": 7890460369645563322, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:819", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 170, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/381969/?format=api", "priority": 100, "id": 1514720, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=ed808be697056dba", "url": "https://translate-dev.freebsd.org/api/units/1514720/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.153328Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "➌ If we want just to pass all extra arguments to any method, we can merely substitute `\"$@\"` for `\"$1\"` in the last line of our script, where we invoke `run_rc_command`." ], "previous_source": "", "target": [ "" ], "id_hash": 6139634702348939978, "content_hash": 6139634702348939978, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:822", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 171, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/381971/?format=api", "priority": 100, "id": 1514721, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=d5345d3b8c2b72ca", "url": "https://translate-dev.freebsd.org/api/units/1514721/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.156834Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "An man:sh[1] programmer ought to understand the subtle difference between `$*` and `$@` as the ways to designate all positional parameters. For its in-depth discussion, refer to a good handbook on man:sh[1] scripting. _Do not_ use the expressions until you fully understand them because their misuse will result in buggy and insecure scripts." ], "previous_source": "", "target": [ "" ], "id_hash": -4462581403845045345, "content_hash": -4462581403845045345, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:828", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 172, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/611768/?format=api", "priority": 100, "id": 1514722, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=4211b9db628d539f", "url": "https://translate-dev.freebsd.org/api/units/1514722/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.160467Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Currently `run_rc_command` may have a bug that prevents it from keeping the original boundaries between arguments. That is, arguments with embedded whitespace may not be processed correctly. The bug stems from `$*` misuse." ], "previous_source": "", "target": [ "" ], "id_hash": 8246354977161676189, "content_hash": 8246354977161676189, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:835", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 173, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 33, "source_unit": "https://translate-dev.freebsd.org/api/units/611770/?format=api", "priority": 100, "id": 1514723, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=f270f029217f059d", "url": "https://translate-dev.freebsd.org/api/units/1514723/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.164270Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Further reading" ], "previous_source": "", "target": [ "" ], "id_hash": 3413879513181735093, "content_hash": 3413879513181735093, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:1014", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 212, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/381977/?format=api", "priority": 100, "id": 1514724, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=af608954692e48b5", "url": "https://translate-dev.freebsd.org/api/units/1514724/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.167612Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "[[lukem]]http://www.mewburn.net/luke/papers/rc.d.pdf[The original article by Luke Mewburn] offers a general overview of [.filename]#rc.d# and detailed rationale for its design decisions. It provides insight on the whole [.filename]#rc.d# framework and its place in a modern BSD operating system." ], "previous_source": "", "target": [ "" ], "id_hash": -3068620667265255413, "content_hash": -3068620667265255413, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:1018", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 213, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/611772/?format=api", "priority": 100, "id": 1514725, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=556a11c2e93b780b", "url": "https://translate-dev.freebsd.org/api/units/1514725/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.170943Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "[[manpages]]The manual pages man:rc[8], man:rc.subr[8], and man:rcorder[8] document the [.filename]#rc.d# components in great detail. You cannot fully use the [.filename]#rc.d# power without studying the manual pages and referring to them while writing your own scripts." ], "previous_source": "", "target": [ "" ], "id_hash": -3843401302365174096, "content_hash": -3843401302365174096, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:1021", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 214, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 35, "source_unit": "https://translate-dev.freebsd.org/api/units/611774/?format=api", "priority": 100, "id": 1514726, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=4aa97ee0f34006b0", "url": "https://translate-dev.freebsd.org/api/units/1514726/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.174054Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "The major source of working, real-life examples is [.filename]#/etc/rc.d# in a live system. Its contents are easy and pleasant to read because most rough corners are hidden deep in man:rc.subr[8]. Keep in mind though that the [.filename]#/etc/rc.d# scripts were not written by angels, so they might suffer from bugs and suboptimal design decisions. Now you can improve them!" ], "previous_source": "", "target": [ "" ], "id_hash": -1090020829967265562, "content_hash": -1090020829967265562, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:1025", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 215, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 58, "source_unit": "https://translate-dev.freebsd.org/api/units/611776/?format=api", "priority": 100, "id": 1514727, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=70df77d4900650e6", "url": "https://translate-dev.freebsd.org/api/units/1514727/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T03:39:28.176869Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "There are prerequisites to understanding this article. First of all, you should be familiar with the man:sh[1] scripting language to master [.filename]#rc.d#. In addition, you should know how the system performs userland startup and shutdown tasks, which is described in man:rc[8]." ], "previous_source": "", "target": [ "" ], "id_hash": -5362957061593516883, "content_hash": -5362957061593516883, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:105", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/1574995/?format=api", "priority": 100, "id": 1575034, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=3592f2f7760bb4ad", "url": "https://translate-dev.freebsd.org/api/units/1575034/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-05-21T18:23:25.059685Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "A little consideration before starting `$EDITOR` will not hurt. To write a well-tempered [.filename]#rc.d# script for a system service, we should be able to answer the following questions first:" ], "previous_source": "", "target": [ "" ], "id_hash": -2282471374781221887, "content_hash": -2282471374781221887, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:114", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/1574997/?format=api", "priority": 100, "id": 1575035, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=60530860b02af401", "url": "https://translate-dev.freebsd.org/api/units/1575035/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-05-21T18:23:25.060638Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "To be properly managed by the [.filename]#rc.d# framework, its scripts need to be written in the man:sh[1] language. If you have a service or port that uses a binary control utility or a startup routine written in another language, install that element in [.filename]#/usr/sbin# (for the system) or [.filename]#/usr/local/sbin# (for ports) and call it from a man:sh[1] script in the appropriate [.filename]#rc.d# directory." ], "previous_source": "", "target": [ "" ], "id_hash": 843177929950133530, "content_hash": 843177929950133530, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:162", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 63, "source_unit": "https://translate-dev.freebsd.org/api/units/1574999/?format=api", "priority": 100, "id": 1575036, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=8bb391dc25207d1a", "url": "https://translate-dev.freebsd.org/api/units/1575036/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-05-21T18:23:25.062136Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "The BSD [.filename]#rc.d# design is described in crossref:rc-scripting[lukem, the original article by Luke Mewburn], and the [.filename]#rc.d# components are documented in great detail in crossref:rc-scripting[manpages, the respective manual pages]. However, it might not appear obvious to an [.filename]#rc.d# newbie how to tie the numerous bits and pieces together to create a well-styled script for a particular task. Therefore this article will try a different approach to describe [.filename]#rc.d#. It will show which features should be used in a number of typical cases, and why. Note that this is not a how-to document because our aim is not at giving ready-made recipes, but at showing a few easy entrances into the [.filename]#rc.d# realm. Neither is this article a replacement for the relevant manual pages. Do not hesitate to refer to them for more formal and complete documentation while reading this article." ], "previous_source": "", "target": [ "" ], "id_hash": 7554132679228763521, "content_hash": 7554132679228763521, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:101", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 140, "source_unit": "https://translate-dev.freebsd.org/api/units/1710543/?format=api", "priority": 100, "id": 1711016, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=e8d5aba5f399ad81", "url": "https://translate-dev.freebsd.org/api/units/1711016/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:21.985142Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Now it is the right time to choose a unique name for our script once and for all. We will use it in a number of places while developing the script. The content of the name variable needs to match the script name, some parts of FreeBSD (e.g., crossref:rc-scripting[rcng-service-jails, service jails] and the cpuset feature of the rc framework) depend upon this. As such the filename shall also not contain characters which may be troublesome in scripting (e.g., do not use a hyphen \"-\" and others)." ], "previous_source": "", "target": [ "" ], "id_hash": 4169678341063573944, "content_hash": 4169678341063573944, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:191", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 86, "source_unit": "https://translate-dev.freebsd.org/api/units/1710545/?format=api", "priority": 100, "id": 1711017, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=b9ddac5bfabc01b8", "url": "https://translate-dev.freebsd.org/api/units/1711017/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:21.987490Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "For each [.filename]#rc.d# script, there is an optional man:rc.conf[5] variable that takes precedence over `command`. Its name is constructed as follows: `${name}_program`, where `name` is the mandatory variable we discussed crossref:rc-scripting[name-var, earlier]. E.g., in this case it will be `mumbled_program`. It is man:rc.subr[8] that arranges `${name}_program` to override `command`." ], "previous_source": "", "target": [ "" ], "id_hash": 4192674474690531267, "content_hash": 4192674474690531267, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:374", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 77, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 49, "source_unit": "https://translate-dev.freebsd.org/api/units/1710547/?format=api", "priority": 100, "id": 1711018, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=ba2f5f3892c6cfc3", "url": "https://translate-dev.freebsd.org/api/units/1711018/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.003489Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "_Never_ include dashed options, like `-X` or `--foo`, in `command_args`. The contents of `command_args` will appear at the end of the final command line, hence they are likely to follow arguments present in `${name}_flags`; but most commands will not recognize dashed options after ordinary arguments. A better way of passing additional options to `$command` is to add them to the beginning of `${name}_flags`. Another way is to modify `rc_flags` crossref:rc-scripting[rc-flags, as shown later]." ], "previous_source": "", "target": [ "" ], "id_hash": -1043168703345882769, "content_hash": -1043168703345882769, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:455", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 92, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 73, "source_unit": "https://translate-dev.freebsd.org/api/units/1710549/?format=api", "priority": 100, "id": 1711019, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=7185eb975c43896f", "url": "https://translate-dev.freebsd.org/api/units/1711019/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.009843Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Keep in mind that putting a service name in the `REQUIRE:` line does not guarantee that the service will actually be running by the time our script starts. The required service may fail to start or just be disabled in man:rc.conf[5]. Obviously, man:rcorder[8] cannot track such details, and man:rc[8] will not do that either. Consequently, the application started by our script should be able to cope with any required services being unavailable. In certain cases, we can help it as discussed crossref:rc-scripting[forcedep, below]" ], "previous_source": "", "target": [ "" ], "id_hash": -8748037980390609438, "content_hash": -8748037980390609438, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:682", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 142, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 83, "source_unit": "https://translate-dev.freebsd.org/api/units/1710551/?format=api", "priority": 100, "id": 1711020, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=0698b9ce51312de2", "url": "https://translate-dev.freebsd.org/api/units/1711020/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.028654Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Making a script ready for Service Jails" ], "previous_source": "", "target": [ "" ], "id_hash": 4854684347094975366, "content_hash": 4854684347094975366, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:838", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 174, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1710553/?format=api", "priority": 100, "id": 1711021, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=c35f4db1453ec386", "url": "https://translate-dev.freebsd.org/api/units/1711021/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.040938Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Scripts which start a long running service are suitable for service jails, and should come with a suitable service jail configuration." ], "previous_source": "", "target": [ "" ], "id_hash": -2956024092123908957, "content_hash": -2956024092123908957, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:841", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 175, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1710555/?format=api", "priority": 100, "id": 1711022, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=56fa17bff97534a3", "url": "https://translate-dev.freebsd.org/api/units/1711022/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.041620Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Some examples of scripts which are not suitable to run in a service jail:" ], "previous_source": "", "target": [ "" ], "id_hash": -8730219458425375553, "content_hash": -8730219458425375553, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:843", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 176, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1710557/?format=api", "priority": 100, "id": 1711023, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=06d807a8415a34bf", "url": "https://translate-dev.freebsd.org/api/units/1711023/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.042267Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "any script which in the start command only changes a runtime setting for programs or the kernel," ], "previous_source": "", "target": [ "" ], "id_hash": -8720909104920486173, "content_hash": -8720909104920486173, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:845", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 177, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1710559/?format=api", "priority": 100, "id": 1711024, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=06f91b5fdabe9ee3", "url": "https://translate-dev.freebsd.org/api/units/1711024/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.042925Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "or tries to mount something," ], "previous_source": "", "target": [ "" ], "id_hash": 2540079544216044280, "content_hash": 2540079544216044280, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:846", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 178, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1710561/?format=api", "priority": 100, "id": 1711025, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=a3402ce3363bc2f8", "url": "https://translate-dev.freebsd.org/api/units/1711025/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.043552Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "or finds and deletes files" ], "previous_source": "", "target": [ "" ], "id_hash": -4737411028675161072, "content_hash": -4737411028675161072, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:847", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 179, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1710563/?format=api", "priority": 100, "id": 1711026, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=3e4155c4f0cc9410", "url": "https://translate-dev.freebsd.org/api/units/1711026/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.044152Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Scripts not suitable to run in a service jail need to prevent the use within service jails." ], "previous_source": "", "target": [ "" ], "id_hash": 7294711902012812670, "content_hash": 7294711902012812670, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:849", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 180, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1710565/?format=api", "priority": 100, "id": 1711027, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=e53c05d36a49ad7e", "url": "https://translate-dev.freebsd.org/api/units/1711027/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.044771Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "A script with a long running service which needs to do something listed above before the start or after the stop, can either be split-up into two scripts with dependencies, or use the precommand and postcommand parts of the script to perform this action." ], "previous_source": "", "target": [ "" ], "id_hash": -649298016319814821, "content_hash": -649298016319814821, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:851", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 181, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/1710567/?format=api", "priority": 100, "id": 1711028, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=76fd3ae4efe4435b", "url": "https://translate-dev.freebsd.org/api/units/1711028/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.045393Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "By default, only the start and stop parts of a script are run within a service jail, the rest is run outside the jail. As such any setting used in the start/stop parts of the script can not be set from e.g. a precommand." ], "previous_source": "", "target": [ "" ], "id_hash": 6825021341507020437, "content_hash": 6825021341507020437, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:854", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 182, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/1710569/?format=api", "priority": 100, "id": 1711029, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=deb758bfe4fc6695", "url": "https://translate-dev.freebsd.org/api/units/1711029/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.046031Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "To make a script ready for use with extref:../../books/handbook/jails/#service-jails[Service Jails], only one more config line needs to be inserted:" ], "previous_source": "", "target": [ "" ], "id_hash": 8364346033411512616, "content_hash": 8364346033411512616, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:856", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 183, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1710571/?format=api", "priority": 100, "id": 1711030, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=f4142066b3f0d928", "url": "https://translate-dev.freebsd.org/api/units/1711030/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.046717Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "name=\"dummy\"\nstart_cmd=\"${name}_start\"\nstop_cmd=\":\"\n" ], "previous_source": "", "target": [ "" ], "id_hash": 452457058151861620, "content_hash": 452457058151861620, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:866, documentation/content/en/articles/rc-scripting/_index.adoc:899", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 184, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1710573/?format=api", "priority": 100, "id": 1711031, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=8647734c13428d74", "url": "https://translate-dev.freebsd.org/api/units/1711031/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.047365Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ ": ${dummy_svcj_options:=\"\"} <.>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8823674283778435233, "content_hash": 8823674283778435233, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:868", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 185, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1710575/?format=api", "priority": 100, "id": 1711032, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=fa73fd02e25ce8a1", "url": "https://translate-dev.freebsd.org/api/units/1711032/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.047990Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "dummy_start()\n{\n echo \"Nothing started.\"\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2202519770084547454, "content_hash": 2202519770084547454, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:873, documentation/content/en/articles/rc-scripting/_index.adoc:904", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 186, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1710577/?format=api", "priority": 100, "id": 1711033, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=9e90ec0fbaaa1b7e", "url": "https://translate-dev.freebsd.org/api/units/1711033/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.048626Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "➊ If it makes sense that the script runs in a jail, it must have an overridable service jails configuration. If it does not need network access or access to any other resource which is restricted in jails, an empty config like displayed is enough." ], "previous_source": "", "target": [ "" ], "id_hash": -3874409388714325555, "content_hash": -3874409388714325555, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:880", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 187, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 45, "source_unit": "https://translate-dev.freebsd.org/api/units/1710579/?format=api", "priority": 100, "id": 1711034, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=4a3b55303f3e89cd", "url": "https://translate-dev.freebsd.org/api/units/1711034/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.049231Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Strictly speaking an empty config is not needed, but it explicitly describes that the script is service jails ready, and that it does not need additional jail permissions. As such it is highly recommended to add such an empty config in such a case. The most common option to use is \"net_basic\", which enables the use of the hosts IPv4 and IPv6 addresses. All possible options are explained in man:rc.conf[5]." ], "previous_source": "", "target": [ "" ], "id_hash": -7494332352734676010, "content_hash": -7494332352734676010, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:885", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 188, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 70, "source_unit": "https://translate-dev.freebsd.org/api/units/1710581/?format=api", "priority": 100, "id": 1711035, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=17fec86e8e883bd6", "url": "https://translate-dev.freebsd.org/api/units/1711035/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.049878Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "If a setting for the start/stop depends on variables from the rc-framework (e.g., set inside man:rc.conf[5]), this needs to be handled by ``load_rc_config`` and ``run_rc_command`` instead of inside a precommand." ], "previous_source": "", "target": [ "" ], "id_hash": 1366917712775787057, "content_hash": 1366917712775787057, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:887", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 189, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/1710583/?format=api", "priority": 100, "id": 1711036, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=92f8446ae330b231", "url": "https://translate-dev.freebsd.org/api/units/1711036/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.050572Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "If for some reason a script can not be run within a service jail, e.g., because it is not possible to run or it does not make sense to run it in a jail, use the following:" ], "previous_source": "", "target": [ "" ], "id_hash": 5174585764496131955, "content_hash": 5174585764496131955, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:889", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 190, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/1710585/?format=api", "priority": 100, "id": 1711037, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=c7cfd2563095c773", "url": "https://translate-dev.freebsd.org/api/units/1711037/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.051200Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "load_rc_config $name\ndummy_svcj=\"NO\"\t\t# does not make sense to run in a svcj <.>\nrun_rc_command \"$1\"\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3254546576597896323, "content_hash": -3254546576597896323, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:908", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 191, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1710587/?format=api", "priority": 100, "id": 1711038, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=52d58721c4eb337d", "url": "https://translate-dev.freebsd.org/api/units/1711038/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.051838Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "➊ The disabling needs to happen after the ``load_rc_config`` call, else a man:rc.conf[5] setting may override it." ], "previous_source": "", "target": [ "" ], "id_hash": 6010834520425633415, "content_hash": 6010834520425633415, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:911", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 192, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1710589/?format=api", "priority": 100, "id": 1711039, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=d36ac62649a01687", "url": "https://translate-dev.freebsd.org/api/units/1711039/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.052468Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Advanced rc-scripting: Instancing" ], "previous_source": "", "target": [ "" ], "id_hash": 1457553076908939791, "content_hash": 1457553076908939791, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:913", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 193, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1710591/?format=api", "priority": 100, "id": 1711040, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=943a44cd0e6f5a0f", "url": "https://translate-dev.freebsd.org/api/units/1711040/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.053188Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Sometimes it is useful to run several instances of a service. Typically you want to be able to start/stop such instances independently, and you want to have a separate config file for each instance. Each instance should be started at boot, survive updates, and benefit from updates." ], "previous_source": "", "target": [ "" ], "id_hash": 9001265210400181139, "content_hash": 9001265210400181139, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:921", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 194, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 47, "source_unit": "https://translate-dev.freebsd.org/api/units/1710593/?format=api", "priority": 100, "id": 1711041, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=fceaeb04a2fc0b93", "url": "https://translate-dev.freebsd.org/api/units/1711041/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.053787Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "Here is an example of a rc script which supports this:" ], "previous_source": "", "target": [ "" ], "id_hash": 431586765795581456, "content_hash": 431586765795581456, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:923", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 195, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1710595/?format=api", "priority": 100, "id": 1711042, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=85fd4de079015e10", "url": "https://translate-dev.freebsd.org/api/units/1711042/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.054464Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesrc-scripting_index/pl/?format=api", "source": [ "#\n# PROVIDE: dummy\n# REQUIRE: NETWORKING SERVERS\n# KEYWORD: shutdown\n#\n# Add these following line to /etc/rc.conf.local or /etc/rc.conf\n# to enable this service:\n#\n# dummy_enable (bool):\tSet it to YES to enable dummy on startup.\n#\t\t\tDefault: NO\n# dummy_user (string):\tUser account to run with.\n#\t\t\tDefault: www\n#\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3691944997226257947, "content_hash": 3691944997226257947, "location": "documentation/content/en/articles/rc-scripting/_index.adoc:941", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 196, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 54, "source_unit": "https://translate-dev.freebsd.org/api/units/1710597/?format=api", "priority": 100, "id": 1711043, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesrc-scripting_index/pl/?checksum=b33c6c6a09f39e1b", "url": "https://translate-dev.freebsd.org/api/units/1711043/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-09-14T20:31:22.055130Z" } ] }