# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.1\n" "POT-Creation-Date: 2026-06-05 06:47+0200\n" "PO-Revision-Date: 2026-05-11 21:21+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYSTEMD-SOFT-REBOOT\\&.SERVICE" msgstr "SYSTEMD-SOFT-REBOOT\\&.SERVICE" #. type: TH #: archlinux #, no-wrap msgid "systemd 260.2" msgstr "systemd 260.2" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "systemd-soft-reboot.service" msgstr "systemd-soft-reboot.service" #. ----------------------------------------------------------------- #. * MAIN CONTENT STARTS HERE * #. ----------------------------------------------------------------- #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "systemd-soft-reboot.service - Userspace reboot operation" msgstr "systemd-soft-reboot.service - عملية إعادة تشغيل فضاء المستخدم" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "systemd-soft-reboot\\&.service" msgstr "systemd-soft-reboot\\&.service" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "systemd-soft-reboot\\&.service is a system service that is pulled in by soft-" "reboot\\&.target and is responsible for performing a userspace-only reboot " "operation\\&. When invoked, it will send the B signal to any " "processes left running (but does not wait for the processes to exit), and " "follow up with B\\&. If the /run/nextroot/ directory exists (which " "may be a regular directory, a directory mount point or a symlink to either) " "then it will switch the file system root to it\\&. It then reexecutes the " "service manager off the (possibly now new) root file system, which will " "enqueue a new boot transaction as in a normal reboot\\&." msgstr "" "systemd-soft-reboot\\&.service هي خدمة نظام تُستجلب بواسطة soft-reboot\\&." "target وتكون مسؤولة عن تنفيذ عملية إعادة تشغيل خاصة بفضاء المستخدم فقط\\&. " "عند استدعائها، تُرسل إشارة B إلى أي عمليات لا تزال قيد التشغيل " "(لكنها لا تنتظر خروج العمليات)، وتتبعها بـ B\\&. إذا كان الدليل /" "run/nextroot/ موجودًا (والذي قد يكون دليلًا عاديًا، أو نقطة وصل دليل، أو رابطًا " "رمزيًا لأي منهما)، فستُحوِّل جذر نظام ملفات إليه\\&. ثم تُعيد تنفيذ مدير الخدمات " "من نظام ملفات الجذر (ربما الجديد الآن)، مما سيُدرج معاملة إقلاع جديدة كما في " "إعادة التشغيل العادية\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Such a userspace-only reboot operation permits updating or resetting the " "entirety of userspace with minimal downtime, as the reboot operation does " "I transition through:" msgstr "" "تسمح عملية إعادة التشغيل الخاصة بفضاء المستخدم فقط هذه بتحديث أو إعادة تعيين " "كامل فضاء المستخدم مع أقل وقت تعطل، لأن عملية إعادة التشغيل لا I<تمر> عبر:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The second phase of regular shutdown, as implemented by B(8)\\&." msgstr "" "المرحلة الثانية من الإغلاق العادي، كما تُنفذ بواسطة B(8)\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The third phase of regular shutdown, i\\&.e\\&. the return to the initrd " "context\\&." msgstr "المرحلة الثالثة من الإغلاق العادي، أي العودة إلى سياق initrd\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The hardware reboot operation\\&." msgstr "عملية إعادة تشغيل العتاد\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The firmware initialization\\&." msgstr "تهيئة البرامج الثابتة\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The boot loader initialization\\&." msgstr "تهيئة محمل الإقلاع\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The kernel initialization\\&." msgstr "تهيئة النواة\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The initrd initialization\\&." msgstr "تهيئة initrd\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "However, this form of reboot comes with drawbacks as well:" msgstr "ومع ذلك، يأتي هذا الشكل من إعادة التشغيل مع عيوب أيضًا:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The OS update remains incomplete, as the kernel is not reset and continues " "running\\&." msgstr "" "يبقى تحديث نظام التشغيل غير مكتمل، لأن النواة لا تُعاد تعيينها وتستمر في " "التشغيل\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Kernel settings (such as /proc/sys/ settings, a\\&.k\\&.a\\&. \"sysctl\", " "or /sys/ settings) are not reset\\&." msgstr "" "إعدادات النواة (مثل إعدادات /proc/sys/، المعروفة أيضًا باسم \"sysctl\"، أو " "إعدادات /sys/) لا تُعاد تعيينها\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "These limitations may be addressed by various means, which are outside of " "the scope of this documentation, such as kernel live-patching and " "sufficiently comprehensive /etc/sysctl\\&.d/ files\\&." msgstr "" "يمكن معالجة هذه القيود بوسائل متنوعة، وهي خارج نطاق هذه الوثائق، مثل التصحيح " "المباشر للنواة وملفات /etc/sysctl\\&.d/ الشاملة بما يكفي\\&." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RESOURCE PASS-THROUGH" msgstr "تمرير الموارد" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Various runtime OS resources can passed from a system runtime to the next, " "through the userspace reboot operation\\&. Specifically:" msgstr "" "يمكن تمرير موارد متنوعة لنظام التشغيل في وقت التشغيل من جلسة نظام إلى " "التالية، عبر عملية إعادة تشغيل فضاء المستخدم\\&. تحديدًا:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "File descriptors placed in the file descriptor store of services that remain " "active until the very end are passed to the next boot, where they are placed " "in the file descriptor store of the same unit\\&. For this to work, units " "must declare I (and avoid a manual " "I or similar) to ensure they are not " "terminated as usual during the system shutdown operation\\&. Alternatively, " "use I to allow the file descriptor store to " "remain pinned even when the unit is down\\&. See B(5) for " "details about the file descriptor store\\&." msgstr "" "تُمرَّر واصفات الملفات الموضوعة في مخزن واصفات الملفات للخدمات التي تبقى نشطة " "حتى النهاية إلى الإقلاع التالي، حيث تُوضع في مخزن واصفات الملفات لنفس " "الوحدة\\&. لكي يعمل هذا، يجب على الوحدات أن تُعلن I " "(وتتجنب I يدويًا أو ما شابه) لضمان عدم إنهائها " "كالمعتاد أثناء عملية إغلاق النظام\\&. بدلاً من ذلك، استخدم " "I للسماح لمخزن واصفات الملفات بالبقاء مثبتًا " "حتى عندما تكون الوحدة معطلة\\&. انظر B(5) للحصول على تفاصيل " "حول مخزن واصفات الملفات\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Similar to this, file descriptors associated with \\&.socket units remain " "open (and connectible) if the units are not stopped during the " "transition\\&. (Achieved by I\\&.)" msgstr "" "على غرار هذا، تبقى واصفات الملفات المرتبطة بوحدات \\&.socket مفتوحة (وقابلة " "للاتصال) إذا لم تُوقف الوحدات أثناء الانتقال\\&. (يُحقق ذلك بواسطة " "I\\&.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The /run/ file system remains mounted and populated and may be used to pass " "state information between such userspace reboot cycles\\&." msgstr "" "يبقى نظام ملفات /run/ موصولاً ومملوءًا ويمكن استخدامه لتمرير معلومات الحالة " "بين دورات إعادة تشغيل فضاء المستخدم هذه\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Service processes may continue to run over the transition, past soft-reboot " "and into the next session, if they are placed in services that remain active " "until the very end of shutdown (which again is achieved via " "I)\\&. They must also be set up to avoid being " "killed by the aforementioned B and B via " "I, and also be configured to avoid being stopped " "on isolate via I\\&. They also have to be configured to " "be stopped on normal shutdown, reboot and maintenance mode\\&. Finally, they " "have to be ordered after B to ensure correct ordering on " "boot\\&. Note that in case any new or custom units are used to isolate to, " "or that implement an equivalent shutdown functionality, they will also have " "to be configured manually for correct ordering and conflicting\\&. For " "example:" msgstr "" "يمكن لعمليات الخدمة أن تستمر في التشغيل عبر الانتقال، بعد إعادة التشغيل " "الناعمة وإلى الجلسة التالية، إذا وُضعت في خدمات تبقى نشطة حتى نهاية الإغلاق " "(والذي يُحقق مرة أخرى عبر I)\\&. يجب أيضًا إعدادها " "لتجنب القتل بواسطة B و B المذكورين عبر " "I، وتكوينها أيضًا لتجنب الإيقاف عند العزل عبر " "I\\&. يجب أيضًا تكوينها للإيقاف عند الإغلاق العادي، " "وإعادة التشغيل، ووضع الصيانة\\&. أخيرًا، يجب ترتيبها بعد B " "لضمان الترتيب الصحيح عند الإقلاع\\&. لاحظ أنه في حالة استخدام أي وحدات جديدة " "أو مخصصة للعزل إليها، أو التي تنفذ وظيفة إغلاق مكافئة، يجب أيضًا تكوينها " "يدويًا للترتيب الصحيح والتعارض\\&. على سبيل المثال:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "[Unit]\n" "Description=My Surviving Service\n" "SurviveFinalKillSignal=yes\n" "IgnoreOnIsolate=yes\n" "DefaultDependencies=no\n" "After=basic\\&.target\n" "Conflicts=reboot\\&.target kexec\\&.target poweroff\\&.target halt\\&.target rescue\\&.target emergency\\&.target\n" "Before=shutdown\\&.target rescue\\&.target emergency\\&.target\n" msgstr "" "[Unit]\n" "Description=My Surviving Service\n" "SurviveFinalKillSignal=yes\n" "IgnoreOnIsolate=yes\n" "DefaultDependencies=no\n" "After=basic\\&.target\n" "Conflicts=reboot\\&.target kexec\\&.target poweroff\\&.target halt\\&.target rescue\\&.target emergency\\&.target\n" "Before=shutdown\\&.target rescue\\&.target emergency\\&.target\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "[Service]\n" "Type=oneshot\n" "ExecStart=sleep infinity\n" msgstr "" "[Service]\n" "Type=oneshot\n" "ExecStart=sleep infinity\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On top of the above, templated units also need a configuration file for " "their slice, as they by default use a slice named after the non-templated " "part of the unit\\&. For example, for a foo@test\\&.service instance, a " "system-foo\\&.slice unit may be added with the following content:" msgstr "" "علاوة على ما سبق، تحتاج الوحدات المقولبة أيضًا إلى ملف تكوين لشريحتها، لأنها " "تستخدم مبدئيًا شريحة مسماة باسم الجزء غير المقولب من الوحدة\\&. على سبيل " "المثال، لمثيل foo@test\\&.service، يمكن إضافة وحدة system-foo\\&.slice " "بالمحتوى التالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "[Unit]\n" "SurviveFinalKillSignal=yes\n" "IgnoreOnIsolate=yes\n" "DefaultDependencies=no\n" msgstr "" "[Unit]\n" "SurviveFinalKillSignal=yes\n" "IgnoreOnIsolate=yes\n" "DefaultDependencies=no\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "File system mounts may remain mounted during the transition, and complex " "storage attached, if configured to remain until the very end of the shutdown " "process\\&. (Also achieved via I, and by avoiding " "I)" msgstr "" "قد تبقى عمليات وصل نظام ملفات موصولة أثناء الانتقال، والتخزين المعقد ملحقًا، " "إذا ضُبطت للبقاء حتى نهاية عملية الإيقاف\\&. (يُحقق أيضًا عبر " "I، وتجنب I)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the unit publishes a service over D-Bus, the connection needs to be re-" "established after soft-reboot as the D-Bus broker will be stopped and then " "started again\\&. When using the B(3) library this can be achieved " "by adapting the following example\\&." msgstr "" "إذا نشرت الوحدة خدمة عبر D-Bus، يجب إعادة إنشاء الاتصال بعد إعادة التشغيل " "الناعمة حيث سيُوقف وسيط D-Bus ثم يُشغّل مرة أخرى\\&. عند استخدام مكتبة B(3) يمكن تحقيق ذلك بتكييف المثال التالي\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "/* SPDX-License-Identifier: MIT-0 */\n" msgstr "/* SPDX-License-Identifier: MIT-0 */\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "/* A D-Bus service that automatically reconnects when the system bus is\n" " * restarted\\&.\n" " *\n" " * Compile with \\*(Aqcc sd_bus_service_reconnect\\&.c $(pkg-config --libs --cflags libsystemd)\\*(Aq\n" " *\n" " * To allow the program to take ownership of the name \\*(Aqorg\\&.freedesktop\\&.ReconnectExample\\*(Aq,\n" " * add the following as /etc/dbus-1/system\\&.d/org\\&.freedesktop\\&.ReconnectExample\\&.conf\n" " * and then reload the broker with \\*(Aqsystemctl reload dbus\\*(Aq:\n" msgstr "" "/* خدمة D-Bus تُعيد الاتصال آليًا عند إعادة تشغيل ناقل النظام\\&.\n" " *\n" " * جمّع باستخدام \\*(Aqcc sd_bus_service_reconnect\\&.c $(pkg-config --libs --cflags libsystemd)\\*(Aq\n" " *\n" " * للسماح للبرنامج بامتلاك الاسم \\*(Aqorg\\&.freedesktop\\&.ReconnectExample\\*(Aq،\n" " * أضف ما يلي كـ /etc/dbus-1/system\\&.d/org\\&.freedesktop\\&.ReconnectExample\\&.conf\n" " * ثم أعد تحميل الوسيط باستخدام \\*(Aqsystemctl reload dbus\\*(Aq:\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "E?xml version=\"1\\&.0\"?E E!--*-nxml-*--E\n" "E!DOCTYPE busconfig PUBLIC \"-//freedesktop//DTD D-BUS Bus Configuration 1\\&.0//EN\"\n" " \"http://www\\&.freedesktop\\&.org/standards/dbus/1\\&.0/busconfig\\&.dtd\"E\n" "EbusconfigE\n" " Epolicy user=\"root\"E\n" " Eallow own=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " Eallow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " Eallow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " E/policyE\n" msgstr "" "E?xml version=\"1\\&.0\"?E E!--*-nxml-*--E\n" "E!DOCTYPE busconfig PUBLIC \"-//freedesktop//DTD D-BUS Bus Configuration 1\\&.0//EN\"\n" " \"http://www\\&.freedesktop\\&.org/standards/dbus/1\\&.0/busconfig\\&.dtd\"E\n" "EbusconfigE\n" " Epolicy user=\"root\"E\n" " Eallow own=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " Eallow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " Eallow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " E/policyE\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " Epolicy context=\"default\"E\n" " Eallow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " Eallow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " E/policyE\n" "E/busconfigE\n" msgstr "" " Epolicy context=\"default\"E\n" " Eallow send_destination=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " Eallow receive_sender=\"org\\&.freedesktop\\&.ReconnectExample\"/E\n" " E/policyE\n" "E/busconfigE\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " *\n" " * To get the property via busctl:\n" " *\n" " * $ busctl --user get-property org\\&.freedesktop\\&.ReconnectExample \\e\n" " * /org/freedesktop/ReconnectExample \\e\n" " * org\\&.freedesktop\\&.ReconnectExample \\e\n" " * Example\n" " * s \"example\"\n" " */\n" msgstr "" " *\n" " * To get the property via busctl:\n" " *\n" " * $ busctl --user get-property org\\&.freedesktop\\&.ReconnectExample \\e\n" " * /org/freedesktop/ReconnectExample \\e\n" " * org\\&.freedesktop\\&.ReconnectExample \\e\n" " * Example\n" " * s \"example\"\n" " */\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Eerrno\\&.hE\n" "#include Estdio\\&.hE\n" "#include Estdlib\\&.hE\n" "#include Esystemd/sd-bus\\&.hE\n" msgstr "" "#include Eerrno\\&.hE\n" "#include Estdio\\&.hE\n" "#include Estdlib\\&.hE\n" "#include Esystemd/sd-bus\\&.hE\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "#define _cleanup_(f) __attribute__((cleanup(f)))\n" msgstr "#define _cleanup_(f) __attribute__((cleanup(f)))\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "static int log_error(int r, const char *str) {\n" " fprintf(stderr, \"%s failed: %s\\en\", str, strerror(-r));\n" " return r;\n" "}\n" msgstr "" "static int log_error(int r, const char *str) {\n" " fprintf(stderr, \"%s فشل: %s\\en\", str, strerror(-r));\n" " return r;\n" "}\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "typedef struct object {\n" " const char *example;\n" " sd_bus **bus;\n" " sd_event **event;\n" "} object;\n" msgstr "" "typedef struct object {\n" " const char *example;\n" " sd_bus **bus;\n" " sd_event **event;\n" "} object;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "static int property_get(\n" " sd_bus *bus,\n" " const char *path,\n" " const char *interface,\n" " const char *property,\n" " sd_bus_message *reply,\n" " void *userdata,\n" " sd_bus_error *error) {\n" msgstr "" "static int property_get(\n" " sd_bus *bus,\n" " const char *path,\n" " const char *interface,\n" " const char *property,\n" " sd_bus_message *reply,\n" " void *userdata,\n" " sd_bus_error *error) {\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid " object *o = userdata;\n" msgstr " object *o = userdata;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " if (strcmp(property, \"Example\") == 0)\n" " return sd_bus_message_append(reply, \"s\", o-Eexample);\n" msgstr "" " if (strcmp(property, \"Example\") == 0)\n" " return sd_bus_message_append(reply, \"s\", o-Eexample);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " return sd_bus_error_setf(error,\n" " SD_BUS_ERROR_UNKNOWN_PROPERTY,\n" " \"Unknown property \\*(Aq%s\\*(Aq\",\n" " property);\n" "}\n" msgstr "" " return sd_bus_error_setf(error,\n" " SD_BUS_ERROR_UNKNOWN_PROPERTY,\n" " \"خاصية مجهولة \\*(Aq%s\\*(Aq\",\n" " property);\n" "}\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "/* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html */\n" "static const sd_bus_vtable vtable[] = {\n" " SD_BUS_VTABLE_START(0),\n" " SD_BUS_PROPERTY(\n" " \"Example\", \"s\",\n" " property_get,\n" " 0,\n" " SD_BUS_VTABLE_PROPERTY_CONST),\n" " SD_BUS_VTABLE_END\n" "};\n" msgstr "" "/* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html */\n" "static const sd_bus_vtable vtable[] = {\n" " SD_BUS_VTABLE_START(0),\n" " SD_BUS_PROPERTY(\n" " \"Example\", \"s\",\n" " property_get,\n" " 0,\n" " SD_BUS_VTABLE_PROPERTY_CONST),\n" " SD_BUS_VTABLE_END\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "static int setup(object *o);\n" msgstr "static int setup(object *o);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "static int on_disconnect(sd_bus_message *message, void *userdata, sd_bus_error *ret_error) {\n" " int r;\n" msgstr "" "static int on_disconnect(sd_bus_message *message, void *userdata, sd_bus_error *ret_error) {\n" " int r;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " r = setup((object *)userdata);\n" " if (r E 0) {\n" " object *o = userdata;\n" " r = sd_event_exit(*o-Eevent, r);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_exit()\");\n" " }\n" msgstr "" " r = setup((object *)userdata);\n" " if (r E 0) {\n" " object *o = userdata;\n" " r = sd_event_exit(*o-Eevent, r);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_exit()\");\n" " }\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " return 1;\n" "}\n" msgstr "" " return 1;\n" "}\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "/* Ensure the event loop exits with a clear error if acquiring the well-known\n" " * service name fails */\n" "static int request_name_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) {\n" " int r;\n" msgstr "" "/* التأكد من خروج حلقة الأحداث بخطأ واضح إذا فشل الحصول على\n" " * اسم الخدمة المعروف */\n" "static int request_name_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) {\n" " int r;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " if (!sd_bus_message_is_method_error(m, NULL))\n" " return 1;\n" msgstr "" " if (!sd_bus_message_is_method_error(m, NULL))\n" " return 1;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid " const sd_bus_error *error = sd_bus_message_get_error(m);\n" msgstr " const sd_bus_error *error = sd_bus_message_get_error(m);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " if (sd_bus_error_has_names(error, SD_BUS_ERROR_TIMEOUT, SD_BUS_ERROR_NO_REPLY))\n" " return 1; /* The bus is not available, try again later */\n" msgstr "" " if (sd_bus_error_has_names(error, SD_BUS_ERROR_TIMEOUT, SD_BUS_ERROR_NO_REPLY))\n" " return 1; /* الناقل غير متاح، حاول لاحقًا */\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " fprintf(stderr, \"Failed to request name: %s\\en\", error-Emessage);\n" " object *o = userdata;\n" " r = sd_event_exit(*o-Eevent, -sd_bus_error_get_errno(error));\n" " if (r E 0)\n" " return log_error(r, \"sd_event_exit()\");\n" msgstr "" " fprintf(stderr, \"فشل طلب الاسم: %s\\en\", error-Emessage);\n" " object *o = userdata;\n" " r = sd_event_exit(*o-Eevent, -sd_bus_error_get_errno(error));\n" " if (r E 0)\n" " return log_error(r, \"sd_event_exit()\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "static int setup(object *o) {\n" " int r;\n" msgstr "" "static int setup(object *o) {\n" " int r;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* If we are reconnecting, then the bus object needs to be closed, detached\n" " * from the event loop and recreated\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_detach_event\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_close_unref\\&.html\n" " */\n" " if (*o-Ebus) {\n" " r = sd_bus_detach_event(*o-Ebus);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_detach_event()\");\n" " *o-Ebus = sd_bus_close_unref(*o-Ebus);\n" " }\n" msgstr "" " /* إذا كنا نُعيد الاتصال، فيجب إغلاق كائن الناقل وفصله\n" " * من حلقة الأحداث وإعادة إنشائه\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_detach_event\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_close_unref\\&.html\n" " */\n" " if (*o-Ebus) {\n" " r = sd_bus_detach_event(*o-Ebus);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_detach_event()\");\n" " *o-Ebus = sd_bus_close_unref(*o-Ebus);\n" " }\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* Set up a new bus object for the system bus, configure it to wait for D-Bus\n" " * to be available instead of failing if it is not, and start it\\&. All the\n" " * following operations are asynchronous and will not block waiting for D-Bus\n" " * to be available\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_new\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_address\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_bus_client\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_negotiate_creds\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_watch_bind\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_connected_signal\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_start\\&.html\n" " */\n" " r = sd_bus_new(o-Ebus);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_new()\");\n" " r = sd_bus_set_address(*o-Ebus, \"unix:path=/run/dbus/system_bus_socket\");\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_set_address()\");\n" " r = sd_bus_set_bus_client(*o-Ebus, 1);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_set_bus_client()\");\n" " r = sd_bus_negotiate_creds(*o-Ebus, 1, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_negotiate_creds()\");\n" " r = sd_bus_set_watch_bind(*o-Ebus, 1);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_set_watch_bind()\");\n" " r = sd_bus_start(*o-Ebus);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_start()\");\n" msgstr "" " /* أنشئ كائن ناقل جديد لناقل النظام، واضبطه للانتظار حتى يكون\n" " * D-Bus متاحًا بدلاً من الفشل، ثم ابدأ تشغيله\\&. كل العمليات\n" " * التالية غير متزامنة ولن تمنع الانتظار ليكون D-Bus\n" " * متاحًا\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_new\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_address\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_bus_client\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_negotiate_creds\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_watch_bind\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_set_connected_signal\\&.html\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_start\\&.html\n" " */\n" " r = sd_bus_new(o-Ebus);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_new()\");\n" " r = sd_bus_set_address(*o-Ebus, \"unix:path=/run/dbus/system_bus_socket\");\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_set_address()\");\n" " r = sd_bus_set_bus_client(*o-Ebus, 1);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_set_bus_client()\");\n" " r = sd_bus_negotiate_creds(*o-Ebus, 1, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_negotiate_creds()\");\n" " r = sd_bus_set_watch_bind(*o-Ebus, 1);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_set_watch_bind()\");\n" " r = sd_bus_start(*o-Ebus);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_start()\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* Publish an interface on the bus, specifying our well-known object access\n" " * path and public interface name\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html\n" " * https://dbus\\&.freedesktop\\&.org/doc/dbus-tutorial\\&.html\n" " */\n" " r = sd_bus_add_object_vtable(*o-Ebus,\n" " NULL,\n" " \"/org/freedesktop/ReconnectExample\",\n" " \"org\\&.freedesktop\\&.ReconnectExample\",\n" " vtable,\n" " o);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_add_object_vtable()\");\n" " /* By default, the service is only assigned an ephemeral name\\&. Also add a\n" " * well-known one, so that clients know whom to call\\&. This needs to be\n" " * asynchronous, as D-Bus might not be yet available\\&. The callback will check\n" " * whether the error is expected or not, in case it fails\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_request_name\\&.html\n" " */\n" " r = sd_bus_request_name_async(*o-Ebus,\n" " NULL,\n" " \"org\\&.freedesktop\\&.ReconnectExample\",\n" " 0,\n" " request_name_callback,\n" " o);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_request_name_async()\");\n" " /* When D-Bus is disconnected this callback will be invoked, which will set up\n" " * the connection again\\&. This needs to be asynchronous, as D-Bus might not yet\n" " * be available\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_match_signal_async\\&.html\n" " */\n" " r = sd_bus_match_signal_async(*o-Ebus,\n" " NULL,\n" " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n" " NULL,\n" " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n" " \"Disconnected\",\n" " on_disconnect,\n" " NULL,\n" " o);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_match_signal_async()\");\n" " /* Attach the bus object to the event loop so that calls and signals are\n" " * processed\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_attach_event\\&.html\n" " */\n" " r = sd_bus_attach_event(*o-Ebus, *o-Eevent, 0);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_attach_event()\");\n" msgstr "" " /* انشر واجهة على الناقل، مع تحديد مسار وصول الكائن\n" " * المعروف واسم الواجهة العامة\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_add_object\\&.html\n" " * https://dbus\\&.freedesktop\\&.org/doc/dbus-tutorial\\&.html\n" " */\n" " r = sd_bus_add_object_vtable(*o-Ebus,\n" " NULL,\n" " \"/org/freedesktop/ReconnectExample\",\n" " \"org\\&.freedesktop\\&.ReconnectExample\",\n" " vtable,\n" " o);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_add_object_vtable()\");\n" " /* يُسند للخدمة اسم عابر مبدئيًا\\&. أضف أيضًا اسمًا\n" " * معروفًا، ليعرف العملاء من يستدعون\\&. يجب أن يكون هذا\n" " * غير متزامن، لأن D-Bus قد لا يكون متاحًا بعد\\&. سيتحقق الاستدعاء الراجع\n" " * مما إذا كان الخطأ متوقعًا أم لا، في حال فشله\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_request_name\\&.html\n" " */\n" " r = sd_bus_request_name_async(*o-Ebus,\n" " NULL,\n" " \"org\\&.freedesktop\\&.ReconnectExample\",\n" " 0,\n" " request_name_callback,\n" " o);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_request_name_async()\");\n" " /* عند قطع اتصال D-Bus سيُستدعى هذا الاستدعاء الراجع، والذي سيُعد\n" " * الاتصال مرة أخرى\\&. يجب أن يكون هذا غير متزامن، لأن D-Bus قد لا\n" " * يكون متاحًا بعد\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_match_signal_async\\&.html\n" " */\n" " r = sd_bus_match_signal_async(*o-Ebus,\n" " NULL,\n" " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n" " NULL,\n" " \"org\\&.freedesktop\\&.DBus\\&.Local\",\n" " \"Disconnected\",\n" " on_disconnect,\n" " NULL,\n" " o);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_match_signal_async()\");\n" " /* ألحق كائن الناقل بحلقة الأحداث لتُعالج الاستدعاءات والإشارات\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_attach_event\\&.html\n" " */\n" " r = sd_bus_attach_event(*o-Ebus, *o-Eevent, 0);\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_attach_event()\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " return 0;\n" "}\n" msgstr "" " return 0;\n" "}\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "int main(int argc, char **argv) {\n" " /* The bus should be relinquished before the program terminates\\&. The cleanup\n" " * attribute allows us to do it nicely and cleanly whenever we exit the block\\&.\n" " */\n" " _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;\n" " _cleanup_(sd_event_unrefp) sd_event *event = NULL;\n" " object o = {\n" " \\&.example = \"example\",\n" " \\&.bus = &bus,\n" " \\&.event = &event,\n" " };\n" " int r;\n" msgstr "" "int main(int argc, char **argv) {\n" " /* يجب التخلي عن الناقل قبل انتهاء البرنامج\\&. تسمح لنا\n" " * سمة التنظيف بالقيام بذلك بشكل جميل ونظيف كلما خرجنا من الكتلة\\&.\n" " */\n" " _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;\n" " _cleanup_(sd_event_unrefp) sd_event *event = NULL;\n" " object o = {\n" " \\&.example = \"example\",\n" " \\&.bus = &bus,\n" " \\&.event = &event,\n" " };\n" " int r;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* Create an event loop data structure, with default parameters\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_default\\&.html\n" " */\n" " r = sd_event_default(&event);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_default()\");\n" msgstr "" " /* أنشئ بنية بيانات لحلقة الأحداث، بمعاملات مبدئية\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_default\\&.html\n" " */\n" " r = sd_event_default(&event);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_default()\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* By default, the event loop will terminate when all sources have disappeared,\n" " * so we have to keep it \\*(Aqoccupied\\*(Aq\\&. Register signal handling to do so\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_add_signal\\&.html\n" " */\n" " r = sd_event_add_signal(event, NULL, SIGINT|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_add_signal(SIGINT)\");\n" msgstr "" " /* ستنتهي حلقة الأحداث مبدئيًا عند اختفاء جميع المصادر،\n" " * لذا يجب علينا إبقاؤها \\*(Aqمشغولة\\*(Aq\\&. سجّل معالجة الإشارات للقيام بذلك\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_add_signal\\&.html\n" " */\n" " r = sd_event_add_signal(event, NULL, SIGINT|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_add_signal(SIGINT)\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " r = sd_event_add_signal(event, NULL, SIGTERM|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_add_signal(SIGTERM)\");\n" msgstr "" " r = sd_event_add_signal(event, NULL, SIGTERM|SD_EVENT_SIGNAL_PROCMASK, NULL, NULL);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_add_signal(SIGTERM)\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " r = setup(&o);\n" " if (r E 0)\n" " return EXIT_FAILURE;\n" msgstr "" " r = setup(&o);\n" " if (r E 0)\n" " return EXIT_FAILURE;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* Enter the main loop, it will exit only on sigint/sigterm\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_loop\\&.html\n" " */\n" " r = sd_event_loop(event);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_loop()\");\n" msgstr "" " /* ادخل الحلقة الرئيسة، ولن تخرج إلا عند sigint/sigterm\\&.\n" " * https://www\\&.freedesktop\\&.org/software/systemd/man/sd_event_loop\\&.html\n" " */\n" " r = sd_event_loop(event);\n" " if (r E 0)\n" " return log_error(r, \"sd_event_loop()\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " /* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_release_name\\&.html */\n" " r = sd_bus_release_name(bus, \"org\\&.freedesktop\\&.ReconnectExample\");\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_release_name()\");\n" msgstr "" " /* https://www\\&.freedesktop\\&.org/software/systemd/man/sd_bus_release_name\\&.html */\n" " r = sd_bus_release_name(bus, \"org\\&.freedesktop\\&.ReconnectExample\");\n" " if (r E 0)\n" " return log_error(r, \"sd_bus_release_name()\");\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Even though passing resources from one soft reboot cycle to the next is " "possible this way, we strongly suggest to use this functionality sparingly " "only, as it creates a more fragile system as resources from different " "versions of the OS and applications might be mixed with unforeseen " "consequences\\&. In particular it is recommended to I allowing " "processes to survive the soft reboot operation, as this means code updates " "will necessarily be incomplete, and processes typically pin various other " "resources (such as the file system they are backed by), thus increasing " "memory usage (as two versions of the OS/application/file system might be " "kept in memory)\\&. Leaving processes running during a soft-reboot operation " "requires disconnecting the service comprehensively from the rest of the OS, " "i\\&.e\\&. minimizing IPC and reducing sharing of resources with the rest of " "the OS\\&. A possible mechanism to achieve this is the concept of " "\\m[blue]B\\m[]\\&\\s-2\\u[1]\\d\\s+2, but make sure no " "resource from the host\\*(Aqs OS filesystems is pinned via I or " "similar unit settings, otherwise the old, originating filesystem will remain " "mounted as long as the unit is running\\&." msgstr "" "على الرغم من أن تمرير الموارد من دورة إعادة تشغيل ناعمة إلى التالية ممكن " "بهذه الطريقة، إلا أننا نقترح بشدة استخدام هذه الوظيفة باعتدال فقط، لأنها " "تخلق نظامًا أكثر هشاشة حيث قد تُخلط الموارد من إصدارات مختلفة من نظام التشغيل " "والتطبيقات مع عواقب غير متوقعة\\&. يوصى بشكل خاص بـ I<تجنب> السماح للعمليات " "بالبقاء حية بعد عملية إعادة التشغيل الناعمة، لأن هذا يعني أن تحديثات الكود " "ستكون بالضرورة غير مكتملة، وعادة ما تُثبّت العمليات موارد أخرى متنوعة (مثل " "نظام ملفات الذي تستند إليه)، مما يزيد من استهلاك الذاكرة (حيث قد يَبقى " "إصداران من نظام التشغيل/التطبيق/نظام الملفات في الذاكرة)\\&. يتطلب ترك " "العمليات قيد التشغيل أثناء عملية إعادة التشغيل الناعمة فصل الخدمة بشكل شامل " "عن بقية نظام التشغيل، أي تقليل IPC وتقليل مشاركة الموارد مع بقية نظام " "التشغيل\\&. الآلية الممكنة لتحقيق ذلك هي مفهوم \\m[blue]B<الخدمات " "المحمولة>\\m[]\\&\\s-2\\u[1]\\d\\s+2، ولكن تأكد من عدم تثبيت أي مورد من " "أنظمة ملفات نظام تشغيل المضيف عبر I أو إعدادات وحدة مماثلة، وإلا " "سيبقى نظام الملفات القديم الأصلي موصولاً طالما أن الوحدة قيد التشغيل\\&." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that because B(8) is not executed, the executables " "in /usr/lib/systemd/system-shutdown/ are not executed either\\&." msgstr "" "لاحظ أنه نظرًا لعدم تنفيذ B(8)، فلن تُنفذ الملفات التنفيذية " "في /usr/lib/systemd/system-shutdown/ أيضًا\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that systemd-soft-reboot\\&.service (and related units) should never be " "executed directly\\&. Instead, trigger system shutdown with a command such " "as B\\&." msgstr "" "لاحظ أنه يجب عدم تنفيذ systemd-soft-reboot\\&.service (والوحدات ذات الصلة) " "مباشرة أبدًا\\&. بدلاً من ذلك، استحث إغلاق النظام بأمر مثل B\\&." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that if a new root file system has been set up on \"/run/nextroot/\", a " "B will be performed when the B command is invoked\\&." msgstr "" "لاحظ أنه إذا ضُبط نظام ملفات جذر جديد على \"/run/nextroot/\"، فستُجرى B<إعادة " "تشغيل ناعمة> (soft-reboot) عند استدعاء الأمر B\\&." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(1), B(1), B(7), B(8), B(8), B(7)" msgstr "" "B(1)، B(1)، B(7)، B(8)، B(8)، B(7)" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid " 1." msgstr " 1." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Portable Services" msgstr "الخدمات المحمولة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "\\%https://systemd.io/PORTABLE_SERVICES" msgstr "\\%https://systemd.io/PORTABLE_SERVICES" #. type: TH #: debian-trixie opensuse-leap-16-1 #, no-wrap msgid "systemd 257.13" msgstr "systemd 257.13" #. type: TH #: debian-unstable #, no-wrap msgid "systemd 261~rc3" msgstr "systemd 261~rc3" #. type: TH #: fedora-44 #, no-wrap msgid "systemd 259.5" msgstr "systemd 259.5" #. type: TH #: fedora-rawhide #, no-wrap msgid "systemd 261~rc2" msgstr "systemd 261~rc2" #. type: TH #: mageia-cauldron #, no-wrap msgid "systemd 258.7" msgstr "systemd 258.7" #. type: TH #: opensuse-tumbleweed #, no-wrap msgid "systemd 260.1" msgstr "systemd 260.1"