Debian Codegraph @

po/ar/man8/systemd-soft-reboot.service.8.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.1\n"
8 "POT-Creation-Date: 2026-06-05 06:47+0200\n"
9 "PO-Revision-Date: 2026-05-11 21:21+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "SYSTEMD-SOFT-REBOOT\\&.SERVICE"
25 msgstr "SYSTEMD-SOFT-REBOOT\\&.SERVICE"
26
27 #. type: TH
28 #: archlinux
29 #, no-wrap
30 msgid "systemd 260.2"
31 msgstr "systemd 260.2"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "systemd-soft-reboot.service"
38 msgstr "systemd-soft-reboot.service"
39
40 #. -----------------------------------------------------------------
41 #. * MAIN CONTENT STARTS HERE *
42 #. -----------------------------------------------------------------
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "الاسم"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid "systemd-soft-reboot.service - Userspace reboot operation"
54 msgstr "systemd-soft-reboot.service - عملية إعادة تشغيل فضاء المستخدم"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "SYNOPSIS"
61 msgstr "موجز"
62
63 #. type: Plain text
64 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
65 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "systemd-soft-reboot\\&.service"
67 msgstr "systemd-soft-reboot\\&.service"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "DESCRIPTION"
74 msgstr "الوصف"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 msgid ""
80 "systemd-soft-reboot\\&.service is a system service that is pulled in by soft-"
81 "reboot\\&.target and is responsible for performing a userspace-only reboot "
82 "operation\\&. When invoked, it will send the B<SIGTERM> signal to any "
83 "processes left running (but does not wait for the processes to exit), and "
84 "follow up with B<SIGKILL>\\&. If the /run/nextroot/ directory exists (which "
85 "may be a regular directory, a directory mount point or a symlink to either) "
86 "then it will switch the file system root to it\\&. It then reexecutes the "
87 "service manager off the (possibly now new) root file system, which will "
88 "enqueue a new boot transaction as in a normal reboot\\&."
89 msgstr ""
90 "systemd-soft-reboot\\&.service هي خدمة نظام تُستجلب بواسطة soft-reboot\\&."
91 "target وتكون مسؤولة عن تنفيذ عملية إعادة تشغيل خاصة بفضاء المستخدم فقط\\&. "
92 "عند استدعائها، تُرسل إشارة B<SIGTERM> إلى أي عمليات لا تزال قيد التشغيل "
93 "(لكنها لا تنتظر خروج العمليات)، وتتبعها بـ B<SIGKILL>\\&. إذا كان الدليل /"
94 "run/nextroot/ موجودًا (والذي قد يكون دليلًا عاديًا، أو نقطة وصل دليل، أو رابطًا "
95 "رمزيًا لأي منهما)، فستُحوِّل جذر نظام ملفات إليه\\&. ثم تُعيد تنفيذ مدير الخدمات "
96 "من نظام ملفات الجذر (ربما الجديد الآن)، مما سيُدرج معاملة إقلاع جديدة كما في "
97 "إعادة التشغيل العادية\\&."
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "Such a userspace-only reboot operation permits updating or resetting the "
104 "entirety of userspace with minimal downtime, as the reboot operation does "
105 "I<not> transition through:"
106 msgstr ""
107 "تسمح عملية إعادة التشغيل الخاصة بفضاء المستخدم فقط هذه بتحديث أو إعادة تعيين "
108 "كامل فضاء المستخدم مع أقل وقت تعطل، لأن عملية إعادة التشغيل لا I<تمر> عبر:"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "The second phase of regular shutdown, as implemented by B<systemd-"
115 "shutdown>(8)\\&."
116 msgstr ""
117 "المرحلة الثانية من الإغلاق العادي، كما تُنفذ بواسطة B<systemd-shutdown>(8)\\&."
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "The third phase of regular shutdown, i\\&.e\\&. the return to the initrd "
124 "context\\&."
125 msgstr "المرحلة الثالثة من الإغلاق العادي، أي العودة إلى سياق initrd\\&."
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid "The hardware reboot operation\\&."
131 msgstr "عملية إعادة تشغيل العتاد\\&."
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 msgid "The firmware initialization\\&."
137 msgstr "تهيئة البرامج الثابتة\\&."
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid "The boot loader initialization\\&."
143 msgstr "تهيئة محمل الإقلاع\\&."
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid "The kernel initialization\\&."
149 msgstr "تهيئة النواة\\&."
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid "The initrd initialization\\&."
155 msgstr "تهيئة initrd\\&."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid "However, this form of reboot comes with drawbacks as well:"
161 msgstr "ومع ذلك، يأتي هذا الشكل من إعادة التشغيل مع عيوب أيضًا:"
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "The OS update remains incomplete, as the kernel is not reset and continues "
168 "running\\&."
169 msgstr ""
170 "يبقى تحديث نظام التشغيل غير مكتمل، لأن النواة لا تُعاد تعيينها وتستمر في "
171 "التشغيل\\&."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "Kernel settings (such as /proc/sys/ settings, a\\&.k\\&.a\\&. \"sysctl\", "
178 "or /sys/ settings) are not reset\\&."
179 msgstr ""
180 "إعدادات النواة (مثل إعدادات /proc/sys/، المعروفة أيضًا باسم \"sysctl\"، أو "
181 "إعدادات /sys/) لا تُعاد تعيينها\\&."
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "These limitations may be addressed by various means, which are outside of "
188 "the scope of this documentation, such as kernel live-patching and "
189 "sufficiently comprehensive /etc/sysctl\\&.d/ files\\&."
190 msgstr ""
191 "يمكن معالجة هذه القيود بوسائل متنوعة، وهي خارج نطاق هذه الوثائق، مثل التصحيح "
192 "المباشر للنواة وملفات /etc/sysctl\\&.d/ الشاملة بما يكفي\\&."
193
194 #. type: SH
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "RESOURCE PASS-THROUGH"
199 msgstr "تمرير الموارد"
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "Various runtime OS resources can passed from a system runtime to the next, "
206 "through the userspace reboot operation\\&. Specifically:"
207 msgstr ""
208 "يمكن تمرير موارد متنوعة لنظام التشغيل في وقت التشغيل من جلسة نظام إلى "
209 "التالية، عبر عملية إعادة تشغيل فضاء المستخدم\\&. تحديدًا:"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "File descriptors placed in the file descriptor store of services that remain "
216 "active until the very end are passed to the next boot, where they are placed "
217 "in the file descriptor store of the same unit\\&. For this to work, units "
218 "must declare I<DefaultDependencies=no> (and avoid a manual "
219 "I<Conflicts=shutdown\\&.target> or similar) to ensure they are not "
220 "terminated as usual during the system shutdown operation\\&. Alternatively, "
221 "use I<FileDescriptorStorePreserve=> to allow the file descriptor store to "
222 "remain pinned even when the unit is down\\&. See B<systemd.service>(5) for "
223 "details about the file descriptor store\\&."
224 msgstr ""
225 "تُمرَّر واصفات الملفات الموضوعة في مخزن واصفات الملفات للخدمات التي تبقى نشطة "
226 "حتى النهاية إلى الإقلاع التالي، حيث تُوضع في مخزن واصفات الملفات لنفس "
227 "الوحدة\\&. لكي يعمل هذا، يجب على الوحدات أن تُعلن I<DefaultDependencies=no> "
228 "(وتتجنب I<Conflicts=shutdown\\&.target> يدويًا أو ما شابه) لضمان عدم إنهائها "
229 "كالمعتاد أثناء عملية إغلاق النظام\\&. بدلاً من ذلك، استخدم "
230 "I<FileDescriptorStorePreserve=> للسماح لمخزن واصفات الملفات بالبقاء مثبتًا "
231 "حتى عندما تكون الوحدة معطلة\\&. انظر B<systemd.service>(5) للحصول على تفاصيل "
232 "حول مخزن واصفات الملفات\\&."
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "Similar to this, file descriptors associated with \\&.socket units remain "
239 "open (and connectible) if the units are not stopped during the "
240 "transition\\&. (Achieved by I<DefaultDependencies=no>\\&.)"
241 msgstr ""
242 "على غرار هذا، تبقى واصفات الملفات المرتبطة بوحدات \\&.socket مفتوحة (وقابلة "
243 "للاتصال) إذا لم تُوقف الوحدات أثناء الانتقال\\&. (يُحقق ذلك بواسطة "
244 "I<DefaultDependencies=no>\\&.)"
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "The /run/ file system remains mounted and populated and may be used to pass "
251 "state information between such userspace reboot cycles\\&."
252 msgstr ""
253 "يبقى نظام ملفات /run/ موصولاً ومملوءًا ويمكن استخدامه لتمرير معلومات الحالة "
254 "بين دورات إعادة تشغيل فضاء المستخدم هذه\\&."
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "Service processes may continue to run over the transition, past soft-reboot "
261 "and into the next session, if they are placed in services that remain active "
262 "until the very end of shutdown (which again is achieved via "
263 "I<DefaultDependencies=no>)\\&. They must also be set up to avoid being "
264 "killed by the aforementioned B<SIGTERM> and B<SIGKILL> via "
265 "I<SurviveFinalKillSignal=yes>, and also be configured to avoid being stopped "
266 "on isolate via I<IgnoreOnIsolate=yes>\\&. They also have to be configured to "
267 "be stopped on normal shutdown, reboot and maintenance mode\\&. Finally, they "
268 "have to be ordered after B<basic\\&.target> to ensure correct ordering on "
269 "boot\\&. Note that in case any new or custom units are used to isolate to, "
270 "or that implement an equivalent shutdown functionality, they will also have "
271 "to be configured manually for correct ordering and conflicting\\&. For "
272 "example:"
273 msgstr ""
274 "يمكن لعمليات الخدمة أن تستمر في التشغيل عبر الانتقال، بعد إعادة التشغيل "
275 "الناعمة وإلى الجلسة التالية، إذا وُضعت في خدمات تبقى نشطة حتى نهاية الإغلاق "
276 "(والذي يُحقق مرة أخرى عبر I<DefaultDependencies=no>)\\&. يجب أيضًا إعدادها "
277 "لتجنب القتل بواسطة B<SIGTERM> و B<SIGKILL> المذكورين عبر "
278 "I<SurviveFinalKillSignal=yes>، وتكوينها أيضًا لتجنب الإيقاف عند العزل عبر "
279 "I<IgnoreOnIsolate=yes>\\&. يجب أيضًا تكوينها للإيقاف عند الإغلاق العادي، "
280 "وإعادة التشغيل، ووضع الصيانة\\&. أخيرًا، يجب ترتيبها بعد B<basic\\&.target> "
281 "لضمان الترتيب الصحيح عند الإقلاع\\&. لاحظ أنه في حالة استخدام أي وحدات جديدة "
282 "أو مخصصة للعزل إليها، أو التي تنفذ وظيفة إغلاق مكافئة، يجب أيضًا تكوينها "
283 "يدويًا للترتيب الصحيح والتعارض\\&. على سبيل المثال:"
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid ""
290 "[Unit]\n"
291 "Description=My Surviving Service\n"
292 "SurviveFinalKillSignal=yes\n"
293 "IgnoreOnIsolate=yes\n"
294 "DefaultDependencies=no\n"
295 "After=basic\\&.target\n"
296 "Conflicts=reboot\\&.target kexec\\&.target poweroff\\&.target halt\\&.target rescue\\&.target emergency\\&.target\n"
297 "Before=shutdown\\&.target rescue\\&.target emergency\\&.target\n"
298 msgstr ""
299 "[Unit]\n"
300 "Description=My Surviving Service\n"
301 "SurviveFinalKillSignal=yes\n"
302 "IgnoreOnIsolate=yes\n"
303 "DefaultDependencies=no\n"
304 "After=basic\\&.target\n"
305 "Conflicts=reboot\\&.target kexec\\&.target poweroff\\&.target halt\\&.target rescue\\&.target emergency\\&.target\n"
306 "Before=shutdown\\&.target rescue\\&.target emergency\\&.target\n"
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid ""
313 "[Service]\n"
314 "Type=oneshot\n"
315 "ExecStart=sleep infinity\n"
316 msgstr ""
317 "[Service]\n"
318 "Type=oneshot\n"
319 "ExecStart=sleep infinity\n"
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "On top of the above, templated units also need a configuration file for "
326 "their slice, as they by default use a slice named after the non-templated "
327 "part of the unit\\&. For example, for a foo@test\\&.service instance, a "
328 "system-foo\\&.slice unit may be added with the following content:"
329 msgstr ""
330 "علاوة على ما سبق، تحتاج الوحدات المقولبة أيضًا إلى ملف تكوين لشريحتها، لأنها "
331 "تستخدم مبدئيًا شريحة مسماة باسم الجزء غير المقولب من الوحدة\\&. على سبيل "
332 "المثال، لمثيل foo@test\\&.service، يمكن إضافة وحدة system-foo\\&.slice "
333 "بالمحتوى التالي:"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid ""
340 "[Unit]\n"
341 "SurviveFinalKillSignal=yes\n"
342 "IgnoreOnIsolate=yes\n"
343 "DefaultDependencies=no\n"
344 msgstr ""
345 "[Unit]\n"
346 "SurviveFinalKillSignal=yes\n"
347 "IgnoreOnIsolate=yes\n"
348 "DefaultDependencies=no\n"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "File system mounts may remain mounted during the transition, and complex "
355 "storage attached, if configured to remain until the very end of the shutdown "
356 "process\\&. (Also achieved via I<DefaultDependencies=no>, and by avoiding "
357 "I<Conflicts=umount\\&.target>)"
358 msgstr ""
359 "قد تبقى عمليات وصل نظام ملفات موصولة أثناء الانتقال، والتخزين المعقد ملحقًا، "
360 "إذا ضُبطت للبقاء حتى نهاية عملية الإيقاف\\&. (يُحقق أيضًا عبر "
361 "I<DefaultDependencies=no>، وتجنب I<Conflicts=umount\\&.target>)"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "If the unit publishes a service over D-Bus, the connection needs to be re-"
368 "established after soft-reboot as the D-Bus broker will be stopped and then "
369 "started again\\&. When using the B<sd-bus>(3) library this can be achieved "
370 "by adapting the following example\\&."
371 msgstr ""
372 "إذا نشرت الوحدة خدمة عبر D-Bus، يجب إعادة إنشاء الاتصال بعد إعادة التشغيل "
373 "الناعمة حيث سيُوقف وسيط D-Bus ثم يُشغّل مرة أخرى\\&. عند استخدام مكتبة B<sd-"
374 "bus>(3) يمكن تحقيق ذلك بتكييف المثال التالي\\&."
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "/* SPDX-License-Identifier: MIT-0 */\n"
381 msgstr "/* SPDX-License-Identifier: MIT-0 */\n"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid ""
388 "/* A D-Bus service that automatically reconnects when the system bus is\n"
389 " * restarted\\&.\n"
390 " *\n"
391 " * Compile with \\*(Aqcc sd_bus_service_reconnect\\&.c $(pkg-config --libs --cflags libsystemd)\\*(Aq\n"
392 " *\n"
393 " * To allow the program to take ownership of the name \\*(Aqorg\\&.freedesktop\\&.ReconnectExample\\*(Aq,\n"
394 " * add the following as /etc/dbus-1/system\\&.d/org\\&.freedesktop\\&.ReconnectExample\\&.conf\n"
395 " * and then reload the broker with \\*(Aqsystemctl reload dbus\\*(Aq:\n"
396 msgstr ""
397 "/* خدمة D-Bus تُعيد الاتصال آليًا عند إعادة تشغيل ناقل النظام\\&.\n"
398 " *\n"
399 " * جمّع باستخدام \\*(Aqcc sd_bus_service_reconnect\\&.c $(pkg-config --libs --cflags libsystemd)\\*(Aq\n"
400 " *\n"
401 " * للسماح للبرنامج بامتلاك الاسم \\*(Aqorg\\&.freedesktop\\&.ReconnectExample\\*(Aq،\n"
402 " * أضف ما يلي كـ /etc/dbus-1/system\\&.d/org\\&.freedesktop\\&.ReconnectExample\\&.conf\n"
403 " * ثم أعد تحميل الوسيط باستخدام \\*(Aqsystemctl reload dbus\\*(Aq:\n"
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid ""
410 "E<lt>?xml version=\"1\\&.0\"?E<gt> E<lt>!--*-nxml-*--E<gt>\n"
411 "E<lt>!DOCTYPE busconfig PUBLIC \"-//freedesktop//DTD D-BUS Bus Configuration 1\\&.0//EN\"\n"
412 " \"http://www\\&.freedesktop\\&.org/standards/dbus/1\\&.0/busconfig\\&.dtd\"E<gt>\n"
413 "E<lt>busconfigE<gt>\n"
414 " E<lt>policy user=\"root\"E<gt>\n"
415 " E<lt>allow own=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
416 " E<lt>allow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
417 " E<lt>allow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
418 " E<lt>/policyE<gt>\n"
419 msgstr ""
420 "E<lt>?xml version=\"1\\&.0\"?E<gt> E<lt>!--*-nxml-*--E<gt>\n"
421 "E<lt>!DOCTYPE busconfig PUBLIC \"-//freedesktop//DTD D-BUS Bus Configuration 1\\&.0//EN\"\n"
422 " \"http://www\\&.freedesktop\\&.org/standards/dbus/1\\&.0/busconfig\\&.dtd\"E<gt>\n"
423 "E<lt>busconfigE<gt>\n"
424 " E<lt>policy user=\"root\"E<gt>\n"
425 " E<lt>allow own=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
426 " E<lt>allow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
427 " E<lt>allow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
428 " E<lt>/policyE<gt>\n"
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid ""
435 " E<lt>policy context=\"default\"E<gt>\n"
436 " E<lt>allow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
437 " E<lt>allow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
438 " E<lt>/policyE<gt>\n"
439 "E<lt>/busconfigE<gt>\n"
440 msgstr ""
441 " E<lt>policy context=\"default\"E<gt>\n"
442 " E<lt>allow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
443 " E<lt>allow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E<gt>\n"
444 " E<lt>/policyE<gt>\n"
445 "E<lt>/busconfigE<gt>\n"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid ""
452 " *\n"
453 " * To get the property via busctl:\n"
454 " *\n"
455 " * $ busctl --user get-property org\\&.freedesktop\\&.ReconnectExample \\e\n"
456 " * /org/freedesktop/ReconnectExample \\e\n"
457 " * org\\&.freedesktop\\&.ReconnectExample \\e\n"
458 " * Example\n"
459 " * s \"example\"\n"
460 " */\n"
461 msgstr ""
462 " *\n"
463 " * To get the property via busctl:\n"
464 " *\n"
465 " * $ busctl --user get-property org\\&.freedesktop\\&.ReconnectExample \\e\n"
466 " * /org/freedesktop/ReconnectExample \\e\n"
467 " * org\\&.freedesktop\\&.ReconnectExample \\e\n"
468 " * Example\n"
469 " * s \"example\"\n"
470 " */\n"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid ""
477 "#include E<lt>errno\\&.hE<gt>\n"
478 "#include E<lt>stdio\\&.hE<gt>\n"
479 "#include E<lt>stdlib\\&.hE<gt>\n"
480 "#include E<lt>systemd/sd-bus\\&.hE<gt>\n"
481 msgstr ""
482 "#include E<lt>errno\\&.hE<gt>\n"
483 "#include E<lt>stdio\\&.hE<gt>\n"
484 "#include E<lt>stdlib\\&.hE<gt>\n"
485 "#include E<lt>systemd/sd-bus\\&.hE<gt>\n"
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "#define _cleanup_(f) __attribute__((cleanup(f)))\n"
492 msgstr "#define _cleanup_(f) __attribute__((cleanup(f)))\n"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid ""
499 "static int log_error(int r, const char *str) {\n"
500 " fprintf(stderr, \"%s failed: %s\\en\", str, strerror(-r));\n"
501 " return r;\n"
502 "}\n"
503 msgstr ""
504 "static int log_error(int r, const char *str) {\n"
505 " fprintf(stderr, \"%s فشل: %s\\en\", str, strerror(-r));\n"
506 " return r;\n"
507 "}\n"
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid ""
514 "typedef struct object {\n"
515 " const char *example;\n"
516 " sd_bus **bus;\n"
517 " sd_event **event;\n"
518 "} object;\n"
519 msgstr ""
520 "typedef struct object {\n"
521 " const char *example;\n"
522 " sd_bus **bus;\n"
523 " sd_event **event;\n"
524 "} object;\n"
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid ""
531 "static int property_get(\n"
532 " sd_bus *bus,\n"
533 " const char *path,\n"
534 " const char *interface,\n"
535 " const char *property,\n"
536 " sd_bus_message *reply,\n"
537 " void *userdata,\n"
538 " sd_bus_error *error) {\n"
539 msgstr ""
540 "static int property_get(\n"
541 " sd_bus *bus,\n"
542 " const char *path,\n"
543 " const char *interface,\n"
544 " const char *property,\n"
545 " sd_bus_message *reply,\n"
546 " void *userdata,\n"
547 " sd_bus_error *error) {\n"
548
549 #. type: Plain text
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, no-wrap
553 msgid " object *o = userdata;\n"
554 msgstr " object *o = userdata;\n"
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, no-wrap
560 msgid ""
561 " if (strcmp(property, \"Example\") == 0)\n"
562 " return sd_bus_message_append(reply, \"s\", o-E<gt>example);\n"
563 msgstr ""
564 " if (strcmp(property, \"Example\") == 0)\n"
565 " return sd_bus_message_append(reply, \"s\", o-E<gt>example);\n"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid ""
572 " return sd_bus_error_setf(error,\n"
573 " SD_BUS_ERROR_UNKNOWN_PROPERTY,\n"
574 " \"Unknown property \\*(Aq%s\\*(Aq\",\n"
575 " property);\n"
576 "}\n"
577 msgstr ""
578 " return sd_bus_error_setf(error,\n"
579 " SD_BUS_ERROR_UNKNOWN_PROPERTY,\n"
580 " \"خاصية مجهولة \\*(Aq%s\\*(Aq\",\n"
581 " property);\n"
582 "}\n"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid ""
589 "/* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html */\n"
590 "static const sd_bus_vtable vtable[] = {\n"
591 " SD_BUS_VTABLE_START(0),\n"
592 " SD_BUS_PROPERTY(\n"
593 " \"Example\", \"s\",\n"
594 " property_get,\n"
595 " 0,\n"
596 " SD_BUS_VTABLE_PROPERTY_CONST),\n"
597 " SD_BUS_VTABLE_END\n"
598 "};\n"
599 msgstr ""
600 "/* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html */\n"
601 "static const sd_bus_vtable vtable[] = {\n"
602 " SD_BUS_VTABLE_START(0),\n"
603 " SD_BUS_PROPERTY(\n"
604 " \"Example\", \"s\",\n"
605 " property_get,\n"
606 " 0,\n"
607 " SD_BUS_VTABLE_PROPERTY_CONST),\n"
608 " SD_BUS_VTABLE_END\n"
609 "};\n"
610
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 #, no-wrap
615 msgid "static int setup(object *o);\n"
616 msgstr "static int setup(object *o);\n"
617
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, no-wrap
622 msgid ""
623 "static int on_disconnect(sd_bus_message *message, void *userdata, sd_bus_error *ret_error) {\n"
624 " int r;\n"
625 msgstr ""
626 "static int on_disconnect(sd_bus_message *message, void *userdata, sd_bus_error *ret_error) {\n"
627 " int r;\n"
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 #, no-wrap
633 msgid ""
634 " r = setup((object *)userdata);\n"
635 " if (r E<lt> 0) {\n"
636 " object *o = userdata;\n"
637 " r = sd_event_exit(*o-E<gt>event, r);\n"
638 " if (r E<lt> 0)\n"
639 " return log_error(r, \"sd_event_exit()\");\n"
640 " }\n"
641 msgstr ""
642 " r = setup((object *)userdata);\n"
643 " if (r E<lt> 0) {\n"
644 " object *o = userdata;\n"
645 " r = sd_event_exit(*o-E<gt>event, r);\n"
646 " if (r E<lt> 0)\n"
647 " return log_error(r, \"sd_event_exit()\");\n"
648 " }\n"
649
650 #. type: Plain text
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 #, no-wrap
654 msgid ""
655 " return 1;\n"
656 "}\n"
657 msgstr ""
658 " return 1;\n"
659 "}\n"
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid ""
666 "/* Ensure the event loop exits with a clear error if acquiring the well-known\n"
667 " * service name fails */\n"
668 "static int request_name_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) {\n"
669 " int r;\n"
670 msgstr ""
671 "/* التأكد من خروج حلقة الأحداث بخطأ واضح إذا فشل الحصول على\n"
672 " * اسم الخدمة المعروف */\n"
673 "static int request_name_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) {\n"
674 " int r;\n"
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 #, no-wrap
680 msgid ""
681 " if (!sd_bus_message_is_method_error(m, NULL))\n"
682 " return 1;\n"
683 msgstr ""
684 " if (!sd_bus_message_is_method_error(m, NULL))\n"
685 " return 1;\n"
686
687 #. type: Plain text
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid " const sd_bus_error *error = sd_bus_message_get_error(m);\n"
692 msgstr " const sd_bus_error *error = sd_bus_message_get_error(m);\n"
693
694 #. type: Plain text
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid ""
699 " if (sd_bus_error_has_names(error, SD_BUS_ERROR_TIMEOUT, SD_BUS_ERROR_NO_REPLY))\n"
700 " return 1; /* The bus is not available, try again later */\n"
701 msgstr ""
702 " if (sd_bus_error_has_names(error, SD_BUS_ERROR_TIMEOUT, SD_BUS_ERROR_NO_REPLY))\n"
703 " return 1; /* الناقل غير متاح، حاول لاحقًا */\n"
704
705 #. type: Plain text
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid ""
710 " fprintf(stderr, \"Failed to request name: %s\\en\", error-E<gt>message);\n"
711 " object *o = userdata;\n"
712 " r = sd_event_exit(*o-E<gt>event, -sd_bus_error_get_errno(error));\n"
713 " if (r E<lt> 0)\n"
714 " return log_error(r, \"sd_event_exit()\");\n"
715 msgstr ""
716 " fprintf(stderr, \"فشل طلب الاسم: %s\\en\", error-E<gt>message);\n"
717 " object *o = userdata;\n"
718 " r = sd_event_exit(*o-E<gt>event, -sd_bus_error_get_errno(error));\n"
719 " if (r E<lt> 0)\n"
720 " return log_error(r, \"sd_event_exit()\");\n"
721
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, no-wrap
726 msgid ""
727 "static int setup(object *o) {\n"
728 " int r;\n"
729 msgstr ""
730 "static int setup(object *o) {\n"
731 " int r;\n"
732
733 #. type: Plain text
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 #, no-wrap
737 msgid ""
738 " /* If we are reconnecting, then the bus object needs to be closed, detached\n"
739 " * from the event loop and recreated\\&.\n"
740 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_detach_event\\&.html\n"
741 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_close_unref\\&.html\n"
742 " */\n"
743 " if (*o-E<gt>bus) {\n"
744 " r = sd_bus_detach_event(*o-E<gt>bus);\n"
745 " if (r E<lt> 0)\n"
746 " return log_error(r, \"sd_bus_detach_event()\");\n"
747 " *o-E<gt>bus = sd_bus_close_unref(*o-E<gt>bus);\n"
748 " }\n"
749 msgstr ""
750 " /* إذا كنا نُعيد الاتصال، فيجب إغلاق كائن الناقل وفصله\n"
751 " * من حلقة الأحداث وإعادة إنشائه\\&.\n"
752 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_detach_event\\&.html\n"
753 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_close_unref\\&.html\n"
754 " */\n"
755 " if (*o-E<gt>bus) {\n"
756 " r = sd_bus_detach_event(*o-E<gt>bus);\n"
757 " if (r E<lt> 0)\n"
758 " return log_error(r, \"sd_bus_detach_event()\");\n"
759 " *o-E<gt>bus = sd_bus_close_unref(*o-E<gt>bus);\n"
760 " }\n"
761
762 #. type: Plain text
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 #, no-wrap
766 msgid ""
767 " /* Set up a new bus object for the system bus, configure it to wait for D-Bus\n"
768 " * to be available instead of failing if it is not, and start it\\&. All the\n"
769 " * following operations are asynchronous and will not block waiting for D-Bus\n"
770 " * to be available\\&.\n"
771 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_new\\&.html\n"
772 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_address\\&.html\n"
773 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_bus_client\\&.html\n"
774 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_negotiate_creds\\&.html\n"
775 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_watch_bind\\&.html\n"
776 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_connected_signal\\&.html\n"
777 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_start\\&.html\n"
778 " */\n"
779 " r = sd_bus_new(o-E<gt>bus);\n"
780 " if (r E<lt> 0)\n"
781 " return log_error(r, \"sd_bus_new()\");\n"
782 " r = sd_bus_set_address(*o-E<gt>bus, \"unix:path=/run/dbus/system_bus_socket\");\n"
783 " if (r E<lt> 0)\n"
784 " return log_error(r, \"sd_bus_set_address()\");\n"
785 " r = sd_bus_set_bus_client(*o-E<gt>bus, 1);\n"
786 " if (r E<lt> 0)\n"
787 " return log_error(r, \"sd_bus_set_bus_client()\");\n"
788 " r = sd_bus_negotiate_creds(*o-E<gt>bus, 1, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS);\n"
789 " if (r E<lt> 0)\n"
790 " return log_error(r, \"sd_bus_negotiate_creds()\");\n"
791 " r = sd_bus_set_watch_bind(*o-E<gt>bus, 1);\n"
792 " if (r E<lt> 0)\n"
793 " return log_error(r, \"sd_bus_set_watch_bind()\");\n"
794 " r = sd_bus_start(*o-E<gt>bus);\n"
795 " if (r E<lt> 0)\n"
796 " return log_error(r, \"sd_bus_start()\");\n"
797 msgstr ""
798 " /* أنشئ كائن ناقل جديد لناقل النظام، واضبطه للانتظار حتى يكون\n"
799 " * D-Bus متاحًا بدلاً من الفشل، ثم ابدأ تشغيله\\&. كل العمليات\n"
800 " * التالية غير متزامنة ولن تمنع الانتظار ليكون D-Bus\n"
801 " * متاحًا\\&.\n"
802 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_new\\&.html\n"
803 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_address\\&.html\n"
804 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_bus_client\\&.html\n"
805 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_negotiate_creds\\&.html\n"
806 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_watch_bind\\&.html\n"
807 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_connected_signal\\&.html\n"
808 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_start\\&.html\n"
809 " */\n"
810 " r = sd_bus_new(o-E<gt>bus);\n"
811 " if (r E<lt> 0)\n"
812 " return log_error(r, \"sd_bus_new()\");\n"
813 " r = sd_bus_set_address(*o-E<gt>bus, \"unix:path=/run/dbus/system_bus_socket\");\n"
814 " if (r E<lt> 0)\n"
815 " return log_error(r, \"sd_bus_set_address()\");\n"
816 " r = sd_bus_set_bus_client(*o-E<gt>bus, 1);\n"
817 " if (r E<lt> 0)\n"
818 " return log_error(r, \"sd_bus_set_bus_client()\");\n"
819 " r = sd_bus_negotiate_creds(*o-E<gt>bus, 1, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS);\n"
820 " if (r E<lt> 0)\n"
821 " return log_error(r, \"sd_bus_negotiate_creds()\");\n"
822 " r = sd_bus_set_watch_bind(*o-E<gt>bus, 1);\n"
823 " if (r E<lt> 0)\n"
824 " return log_error(r, \"sd_bus_set_watch_bind()\");\n"
825 " r = sd_bus_start(*o-E<gt>bus);\n"
826 " if (r E<lt> 0)\n"
827 " return log_error(r, \"sd_bus_start()\");\n"
828
829 #. type: Plain text
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid ""
834 " /* Publish an interface on the bus, specifying our well-known object access\n"
835 " * path and public interface name\\&.\n"
836 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html\n"
837 " * https://dbus\\&.freedesktop\\&.org/doc/dbus-tutorial\\&.html\n"
838 " */\n"
839 " r = sd_bus_add_object_vtable(*o-E<gt>bus,\n"
840 " NULL,\n"
841 " \"/org/freedesktop/ReconnectExample\",\n"
842 " \"org\\&.freedesktop\\&.ReconnectExample\",\n"
843 " vtable,\n"
844 " o);\n"
845 " if (r E<lt> 0)\n"
846 " return log_error(r, \"sd_bus_add_object_vtable()\");\n"
847 " /* By default, the service is only assigned an ephemeral name\\&. Also add a\n"
848 " * well-known one, so that clients know whom to call\\&. This needs to be\n"
849 " * asynchronous, as D-Bus might not be yet available\\&. The callback will check\n"
850 " * whether the error is expected or not, in case it fails\\&.\n"
851 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_request_name\\&.html\n"
852 " */\n"
853 " r = sd_bus_request_name_async(*o-E<gt>bus,\n"
854 " NULL,\n"
855 " \"org\\&.freedesktop\\&.ReconnectExample\",\n"
856 " 0,\n"
857 " request_name_callback,\n"
858 " o);\n"
859 " if (r E<lt> 0)\n"
860 " return log_error(r, \"sd_bus_request_name_async()\");\n"
861 " /* When D-Bus is disconnected this callback will be invoked, which will set up\n"
862 " * the connection again\\&. This needs to be asynchronous, as D-Bus might not yet\n"
863 " * be available\\&.\n"
864 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_match_signal_async\\&.html\n"
865 " */\n"
866 " r = sd_bus_match_signal_async(*o-E<gt>bus,\n"
867 " NULL,\n"
868 " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n"
869 " NULL,\n"
870 " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n"
871 " \"Disconnected\",\n"
872 " on_disconnect,\n"
873 " NULL,\n"
874 " o);\n"
875 " if (r E<lt> 0)\n"
876 " return log_error(r, \"sd_bus_match_signal_async()\");\n"
877 " /* Attach the bus object to the event loop so that calls and signals are\n"
878 " * processed\\&.\n"
879 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_attach_event\\&.html\n"
880 " */\n"
881 " r = sd_bus_attach_event(*o-E<gt>bus, *o-E<gt>event, 0);\n"
882 " if (r E<lt> 0)\n"
883 " return log_error(r, \"sd_bus_attach_event()\");\n"
884 msgstr ""
885 " /* انشر واجهة على الناقل، مع تحديد مسار وصول الكائن\n"
886 " * المعروف واسم الواجهة العامة\\&.\n"
887 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html\n"
888 " * https://dbus\\&.freedesktop\\&.org/doc/dbus-tutorial\\&.html\n"
889 " */\n"
890 " r = sd_bus_add_object_vtable(*o-E<gt>bus,\n"
891 " NULL,\n"
892 " \"/org/freedesktop/ReconnectExample\",\n"
893 " \"org\\&.freedesktop\\&.ReconnectExample\",\n"
894 " vtable,\n"
895 " o);\n"
896 " if (r E<lt> 0)\n"
897 " return log_error(r, \"sd_bus_add_object_vtable()\");\n"
898 " /* يُسند للخدمة اسم عابر مبدئيًا\\&. أضف أيضًا اسمًا\n"
899 " * معروفًا، ليعرف العملاء من يستدعون\\&. يجب أن يكون هذا\n"
900 " * غير متزامن، لأن D-Bus قد لا يكون متاحًا بعد\\&. سيتحقق الاستدعاء الراجع\n"
901 " * مما إذا كان الخطأ متوقعًا أم لا، في حال فشله\\&.\n"
902 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_request_name\\&.html\n"
903 " */\n"
904 " r = sd_bus_request_name_async(*o-E<gt>bus,\n"
905 " NULL,\n"
906 " \"org\\&.freedesktop\\&.ReconnectExample\",\n"
907 " 0,\n"
908 " request_name_callback,\n"
909 " o);\n"
910 " if (r E<lt> 0)\n"
911 " return log_error(r, \"sd_bus_request_name_async()\");\n"
912 " /* عند قطع اتصال D-Bus سيُستدعى هذا الاستدعاء الراجع، والذي سيُعد\n"
913 " * الاتصال مرة أخرى\\&. يجب أن يكون هذا غير متزامن، لأن D-Bus قد لا\n"
914 " * يكون متاحًا بعد\\&.\n"
915 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_match_signal_async\\&.html\n"
916 " */\n"
917 " r = sd_bus_match_signal_async(*o-E<gt>bus,\n"
918 " NULL,\n"
919 " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n"
920 " NULL,\n"
921 " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n"
922 " \"Disconnected\",\n"
923 " on_disconnect,\n"
924 " NULL,\n"
925 " o);\n"
926 " if (r E<lt> 0)\n"
927 " return log_error(r, \"sd_bus_match_signal_async()\");\n"
928 " /* ألحق كائن الناقل بحلقة الأحداث لتُعالج الاستدعاءات والإشارات\\&.\n"
929 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_attach_event\\&.html\n"
930 " */\n"
931 " r = sd_bus_attach_event(*o-E<gt>bus, *o-E<gt>event, 0);\n"
932 " if (r E<lt> 0)\n"
933 " return log_error(r, \"sd_bus_attach_event()\");\n"
934
935 #. type: Plain text
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 #, no-wrap
939 msgid ""
940 " return 0;\n"
941 "}\n"
942 msgstr ""
943 " return 0;\n"
944 "}\n"
945
946 #. type: Plain text
947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
949 #, no-wrap
950 msgid ""
951 "int main(int argc, char **argv) {\n"
952 " /* The bus should be relinquished before the program terminates\\&. The cleanup\n"
953 " * attribute allows us to do it nicely and cleanly whenever we exit the block\\&.\n"
954 " */\n"
955 " _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;\n"
956 " _cleanup_(sd_event_unrefp) sd_event *event = NULL;\n"
957 " object o = {\n"
958 " \\&.example = \"example\",\n"
959 " \\&.bus = &bus,\n"
960 " \\&.event = &event,\n"
961 " };\n"
962 " int r;\n"
963 msgstr ""
964 "int main(int argc, char **argv) {\n"
965 " /* يجب التخلي عن الناقل قبل انتهاء البرنامج\\&. تسمح لنا\n"
966 " * سمة التنظيف بالقيام بذلك بشكل جميل ونظيف كلما خرجنا من الكتلة\\&.\n"
967 " */\n"
968 " _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;\n"
969 " _cleanup_(sd_event_unrefp) sd_event *event = NULL;\n"
970 " object o = {\n"
971 " \\&.example = \"example\",\n"
972 " \\&.bus = &bus,\n"
973 " \\&.event = &event,\n"
974 " };\n"
975 " int r;\n"
976
977 #. type: Plain text
978 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
979 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
980 #, no-wrap
981 msgid ""
982 " /* Create an event loop data structure, with default parameters\\&.\n"
983 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_default\\&.html\n"
984 " */\n"
985 " r = sd_event_default(&event);\n"
986 " if (r E<lt> 0)\n"
987 " return log_error(r, \"sd_event_default()\");\n"
988 msgstr ""
989 " /* أنشئ بنية بيانات لحلقة الأحداث، بمعاملات مبدئية\\&.\n"
990 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_default\\&.html\n"
991 " */\n"
992 " r = sd_event_default(&event);\n"
993 " if (r E<lt> 0)\n"
994 " return log_error(r, \"sd_event_default()\");\n"
995
996 #. type: Plain text
997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
999 #, no-wrap
1000 msgid ""
1001 " /* By default, the event loop will terminate when all sources have disappeared,\n"
1002 " * so we have to keep it \\*(Aqoccupied\\*(Aq\\&. Register signal handling to do so\\&.\n"
1003 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_add_signal\\&.html\n"
1004 " */\n"
1005 " r = sd_event_add_signal(event, NULL, SIGINT|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n"
1006 " if (r E<lt> 0)\n"
1007 " return log_error(r, \"sd_event_add_signal(SIGINT)\");\n"
1008 msgstr ""
1009 " /* ستنتهي حلقة الأحداث مبدئيًا عند اختفاء جميع المصادر،\n"
1010 " * لذا يجب علينا إبقاؤها \\*(Aqمشغولة\\*(Aq\\&. سجّل معالجة الإشارات للقيام بذلك\\&.\n"
1011 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_add_signal\\&.html\n"
1012 " */\n"
1013 " r = sd_event_add_signal(event, NULL, SIGINT|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n"
1014 " if (r E<lt> 0)\n"
1015 " return log_error(r, \"sd_event_add_signal(SIGINT)\");\n"
1016
1017 #. type: Plain text
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 #, no-wrap
1021 msgid ""
1022 " r = sd_event_add_signal(event, NULL, SIGTERM|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n"
1023 " if (r E<lt> 0)\n"
1024 " return log_error(r, \"sd_event_add_signal(SIGTERM)\");\n"
1025 msgstr ""
1026 " r = sd_event_add_signal(event, NULL, SIGTERM|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n"
1027 " if (r E<lt> 0)\n"
1028 " return log_error(r, \"sd_event_add_signal(SIGTERM)\");\n"
1029
1030 #. type: Plain text
1031 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1032 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1033 #, no-wrap
1034 msgid ""
1035 " r = setup(&o);\n"
1036 " if (r E<lt> 0)\n"
1037 " return EXIT_FAILURE;\n"
1038 msgstr ""
1039 " r = setup(&o);\n"
1040 " if (r E<lt> 0)\n"
1041 " return EXIT_FAILURE;\n"
1042
1043 #. type: Plain text
1044 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1045 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1046 #, no-wrap
1047 msgid ""
1048 " /* Enter the main loop, it will exit only on sigint/sigterm\\&.\n"
1049 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_loop\\&.html\n"
1050 " */\n"
1051 " r = sd_event_loop(event);\n"
1052 " if (r E<lt> 0)\n"
1053 " return log_error(r, \"sd_event_loop()\");\n"
1054 msgstr ""
1055 " /* ادخل الحلقة الرئيسة، ولن تخرج إلا عند sigint/sigterm\\&.\n"
1056 " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_loop\\&.html\n"
1057 " */\n"
1058 " r = sd_event_loop(event);\n"
1059 " if (r E<lt> 0)\n"
1060 " return log_error(r, \"sd_event_loop()\");\n"
1061
1062 #. type: Plain text
1063 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1064 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1065 #, no-wrap
1066 msgid ""
1067 " /* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_release_name\\&.html */\n"
1068 " r = sd_bus_release_name(bus, \"org\\&.freedesktop\\&.ReconnectExample\");\n"
1069 " if (r E<lt> 0)\n"
1070 " return log_error(r, \"sd_bus_release_name()\");\n"
1071 msgstr ""
1072 " /* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_release_name\\&.html */\n"
1073 " r = sd_bus_release_name(bus, \"org\\&.freedesktop\\&.ReconnectExample\");\n"
1074 " if (r E<lt> 0)\n"
1075 " return log_error(r, \"sd_bus_release_name()\");\n"
1076
1077 #. type: Plain text
1078 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1079 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1080 msgid ""
1081 "Even though passing resources from one soft reboot cycle to the next is "
1082 "possible this way, we strongly suggest to use this functionality sparingly "
1083 "only, as it creates a more fragile system as resources from different "
1084 "versions of the OS and applications might be mixed with unforeseen "
1085 "consequences\\&. In particular it is recommended to I<avoid> allowing "
1086 "processes to survive the soft reboot operation, as this means code updates "
1087 "will necessarily be incomplete, and processes typically pin various other "
1088 "resources (such as the file system they are backed by), thus increasing "
1089 "memory usage (as two versions of the OS/application/file system might be "
1090 "kept in memory)\\&. Leaving processes running during a soft-reboot operation "
1091 "requires disconnecting the service comprehensively from the rest of the OS, "
1092 "i\\&.e\\&. minimizing IPC and reducing sharing of resources with the rest of "
1093 "the OS\\&. A possible mechanism to achieve this is the concept of "
1094 "\\m[blue]B<Portable Services>\\m[]\\&\\s-2\\u[1]\\d\\s+2, but make sure no "
1095 "resource from the host\\*(Aqs OS filesystems is pinned via I<BindPaths=> or "
1096 "similar unit settings, otherwise the old, originating filesystem will remain "
1097 "mounted as long as the unit is running\\&."
1098 msgstr ""
1099 "على الرغم من أن تمرير الموارد من دورة إعادة تشغيل ناعمة إلى التالية ممكن "
1100 "بهذه الطريقة، إلا أننا نقترح بشدة استخدام هذه الوظيفة باعتدال فقط، لأنها "
1101 "تخلق نظامًا أكثر هشاشة حيث قد تُخلط الموارد من إصدارات مختلفة من نظام التشغيل "
1102 "والتطبيقات مع عواقب غير متوقعة\\&. يوصى بشكل خاص بـ I<تجنب> السماح للعمليات "
1103 "بالبقاء حية بعد عملية إعادة التشغيل الناعمة، لأن هذا يعني أن تحديثات الكود "
1104 "ستكون بالضرورة غير مكتملة، وعادة ما تُثبّت العمليات موارد أخرى متنوعة (مثل "
1105 "نظام ملفات الذي تستند إليه)، مما يزيد من استهلاك الذاكرة (حيث قد يَبقى "
1106 "إصداران من نظام التشغيل/التطبيق/نظام الملفات في الذاكرة)\\&. يتطلب ترك "
1107 "العمليات قيد التشغيل أثناء عملية إعادة التشغيل الناعمة فصل الخدمة بشكل شامل "
1108 "عن بقية نظام التشغيل، أي تقليل IPC وتقليل مشاركة الموارد مع بقية نظام "
1109 "التشغيل\\&. الآلية الممكنة لتحقيق ذلك هي مفهوم \\m[blue]B<الخدمات "
1110 "المحمولة>\\m[]\\&\\s-2\\u[1]\\d\\s+2، ولكن تأكد من عدم تثبيت أي مورد من "
1111 "أنظمة ملفات نظام تشغيل المضيف عبر I<BindPaths=> أو إعدادات وحدة مماثلة، وإلا "
1112 "سيبقى نظام الملفات القديم الأصلي موصولاً طالما أن الوحدة قيد التشغيل\\&."
1113
1114 #. type: SH
1115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1117 #, no-wrap
1118 msgid "NOTES"
1119 msgstr "ملاحظات"
1120
1121 #. type: Plain text
1122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1124 msgid ""
1125 "Note that because B<systemd-shutdown>(8) is not executed, the executables "
1126 "in /usr/lib/systemd/system-shutdown/ are not executed either\\&."
1127 msgstr ""
1128 "لاحظ أنه نظرًا لعدم تنفيذ B<systemd-shutdown>(8)، فلن تُنفذ الملفات التنفيذية "
1129 "في /usr/lib/systemd/system-shutdown/ أيضًا\\&."
1130
1131 #. type: Plain text
1132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1134 msgid ""
1135 "Note that systemd-soft-reboot\\&.service (and related units) should never be "
1136 "executed directly\\&. Instead, trigger system shutdown with a command such "
1137 "as B<systemctl soft-reboot>\\&."
1138 msgstr ""
1139 "لاحظ أنه يجب عدم تنفيذ systemd-soft-reboot\\&.service (والوحدات ذات الصلة) "
1140 "مباشرة أبدًا\\&. بدلاً من ذلك، استحث إغلاق النظام بأمر مثل B<systemctl soft-"
1141 "reboot>\\&."
1142
1143 #. type: Plain text
1144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1146 msgid ""
1147 "Note that if a new root file system has been set up on \"/run/nextroot/\", a "
1148 "B<soft-reboot> will be performed when the B<reboot> command is invoked\\&."
1149 msgstr ""
1150 "لاحظ أنه إذا ضُبط نظام ملفات جذر جديد على \"/run/nextroot/\"، فستُجرى B<إعادة "
1151 "تشغيل ناعمة> (soft-reboot) عند استدعاء الأمر B<reboot>\\&."
1152
1153 #. type: SH
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 #, no-wrap
1157 msgid "SEE ALSO"
1158 msgstr "انظر أيضًا"
1159
1160 #. type: Plain text
1161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1163 msgid ""
1164 "B<systemd>(1), B<systemctl>(1), B<systemd.special>(7), B<systemd-poweroff."
1165 "service>(8), B<systemd-suspend.service>(8), B<bootup>(7)"
1166 msgstr ""
1167 "B<systemd>(1)، B<systemctl>(1)، B<systemd.special>(7)، B<systemd-poweroff."
1168 "service>(8)، B<systemd-suspend.service>(8)، B<bootup>(7)"
1169
1170 #. type: IP
1171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1173 #, no-wrap
1174 msgid " 1."
1175 msgstr " 1."
1176
1177 #. type: Plain text
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 msgid "Portable Services"
1181 msgstr "الخدمات المحمولة"
1182
1183 #. type: Plain text
1184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1186 msgid "\\%https://systemd.io/PORTABLE_SERVICES"
1187 msgstr "\\%https://systemd.io/PORTABLE_SERVICES"
1188
1189 #. type: TH
1190 #: debian-trixie opensuse-leap-16-1
1191 #, no-wrap
1192 msgid "systemd 257.13"
1193 msgstr "systemd 257.13"
1194
1195 #. type: TH
1196 #: debian-unstable
1197 #, no-wrap
1198 msgid "systemd 261~rc3"
1199 msgstr "systemd 261~rc3"
1200
1201 #. type: TH
1202 #: fedora-44
1203 #, no-wrap
1204 msgid "systemd 259.5"
1205 msgstr "systemd 259.5"
1206
1207 #. type: TH
1208 #: fedora-rawhide
1209 #, no-wrap
1210 msgid "systemd 261~rc2"
1211 msgstr "systemd 261~rc2"
1212
1213 #. type: TH
1214 #: mageia-cauldron
1215 #, no-wrap
1216 msgid "systemd 258.7"
1217 msgstr "systemd 258.7"
1218
1219 #. type: TH
1220 #: opensuse-tumbleweed
1221 #, no-wrap
1222 msgid "systemd 260.1"
1223 msgstr "systemd 260.1"