diff --git a/src/ac-power/ac-power.c b/src/ac-power/ac-power.c index 916bb19759..26df3d099d 100644 --- a/src/ac-power/ac-power.c +++ b/src/ac-power/ac-power.c @@ -19,7 +19,7 @@ static enum { COMMAND( "systemd-ac-power\0", "Report whether we are connected to an external power source.", - .man_pages = "systemd-ac-power.1\0", + .man_pages = "systemd-ac-power(1)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index cf2a289e37..b8b1119216 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -199,7 +199,7 @@ static int verb_transient_settings(int argc, char *argv[], uintptr_t _data, void COMMAND( "systemd-analyze\0", "Profile systemd, show unit dependencies, check unit files.", - .man_pages = "systemd-analyze.1\0", + .man_pages = "systemd-analyze(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/ask-password/ask-password.c b/src/ask-password/ask-password.c index 6b04e6e902..262ed52745 100644 --- a/src/ask-password/ask-password.c +++ b/src/ask-password/ask-password.c @@ -40,7 +40,7 @@ COMMAND( "systemd-ask-password\0", "Query the user for a passphrase, via the TTY or a UI agent.", .argspec = "MESSAGE\0", - .man_pages = "systemd-ask-password.1\0", + .man_pages = "systemd-ask-password(1)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index dbfd2a3038..6aad85a024 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -26,7 +26,7 @@ COMMAND( "systemd-backlight\0", "Save and restore backlight brightness at shutdown and boot.", .argspec = "COMMAND [backlight|leds]:DEVICE\0", - .man_pages = "systemd-backlight.8\0", + .man_pages = "systemd-backlight(8)\0", ); static int has_multiple_graphics_cards(void) { diff --git a/src/battery-check/battery-check.c b/src/battery-check/battery-check.c index 589cfab1fe..5e59922372 100644 --- a/src/battery-check/battery-check.c +++ b/src/battery-check/battery-check.c @@ -29,7 +29,7 @@ static bool arg_doit = true; COMMAND( "systemd-battery-check\0", "Check battery level to see whether there's enough charge.", - .man_pages = "systemd-battery-check.8\0", + .man_pages = "systemd-battery-check(8)\0", ); static int plymouth_send_message(const char *mode, const char *message) { diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c index 900d583f47..0c91ede6bb 100644 --- a/src/binfmt/binfmt.c +++ b/src/binfmt/binfmt.c @@ -30,7 +30,7 @@ COMMAND( "systemd-binfmt\0", "Register binary formats with the kernel.", .argspec = "[CONFIGURATION FILE…]\0", - .man_pages = "systemd-binfmt.service.8\0", + .man_pages = "systemd-binfmt.service(8)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/bless-boot/bless-boot.c b/src/bless-boot/bless-boot.c index 8e6abdfc91..c831b5a3c2 100644 --- a/src/bless-boot/bless-boot.c +++ b/src/bless-boot/bless-boot.c @@ -30,7 +30,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_path, strv_freep); COMMAND( "systemd-bless-boot\0", "Mark the boot process as good or bad.", - .man_pages = "systemd-bless-boot.service.8\0", + .man_pages = "systemd-bless-boot.service(8)\0", ); typedef enum Status { diff --git a/src/bless-boot/boot-check-no-failures.c b/src/bless-boot/boot-check-no-failures.c index ad7d02e5f6..78da0359af 100644 --- a/src/bless-boot/boot-check-no-failures.c +++ b/src/bless-boot/boot-check-no-failures.c @@ -12,7 +12,7 @@ COMMAND( "systemd-boot-check-no-failures\0", "Verify system operational state.", - .man_pages = "systemd-boot-check-no-failures.service.8\0", + .man_pages = "systemd-boot-check-no-failures.service(8)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/bootctl/bootctl.c b/src/bootctl/bootctl.c index d3cd61d4cb..5e41b46b10 100644 --- a/src/bootctl/bootctl.c +++ b/src/bootctl/bootctl.c @@ -110,7 +110,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_extras, strv_freep); COMMAND( "bootctl\0", "Control EFI firmware boot settings and manage boot loader.", - .man_pages = "bootctl.1\0", + .man_pages = "bootctl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c index ccffaec8e2..ab784e2cdb 100644 --- a/src/busctl/busctl.c +++ b/src/busctl/busctl.c @@ -78,7 +78,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_matches, strv_freep); COMMAND( "busctl\0", "Introspect the D-Bus IPC bus.", - .man_pages = "busctl.1\0", + .man_pages = "busctl(1)\0", .pager_flags = &arg_pager_flags, .flags = COMMAND_HELP_SEPARATE, /* the verb table is very wide */ ); diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index f41953be01..625ec072cf 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -41,7 +41,7 @@ COMMAND( "systemd-cgls\0", "Recursively show control group contents.", .argspec = "[CGROUP…]\0" "--unit|--user-unit UNIT…\0", - .man_pages = "systemd-cgls.1\0", + .man_pages = "systemd-cgls(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 9ab6c7bf7b..282dc73552 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -94,7 +94,7 @@ COMMAND( "systemd-cgtop\0", "Show top control groups by their resource usage.", .argspec = "[CGROUP]\0", - .man_pages = "systemd-cgtop.1\0", + .man_pages = "systemd-cgtop(1)\0", ); static const char *order_table[_ORDER_MAX] = { diff --git a/src/clonesetup/clonesetup.c b/src/clonesetup/clonesetup.c index 85ca03f97c..8827dfb98f 100644 --- a/src/clonesetup/clonesetup.c +++ b/src/clonesetup/clonesetup.c @@ -24,7 +24,7 @@ COMMAND( "systemd-clonesetup\0", "Add or remove a dm-clone device.", - .man_pages = "systemd-clonesetup.8\0", + .man_pages = "systemd-clonesetup(8)\0", ); static int parse_clone_options(const char *options, uint64_t *ret_region_size_bytes) { diff --git a/src/core/executor.c b/src/core/executor.c index 6b96ea3f9c..7c15dd439b 100644 --- a/src/core/executor.c +++ b/src/core/executor.c @@ -33,7 +33,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_serialization, fclosep); COMMAND( "systemd-executor\0", "Sandbox and execute processes.", - .man_pages = "systemd.1\0", + .man_pages = "systemd(1)\0", .option_namespace = "systemd-executor", ); diff --git a/src/core/main.c b/src/core/main.c index fe7e5d8498..61726a022c 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1042,7 +1042,7 @@ static int redirect_telinit(char *argv[], char **args) { COMMAND( "systemd\0", "Start and monitor system and user services.", - .man_pages = "systemd.1\0", + .man_pages = "systemd(1)\0", .option_namespace = "systemd", .pager_flags = &arg_pager_flags, ); diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c index b6c63be8ba..1ceddf33de 100644 --- a/src/coredump/coredumpctl.c +++ b/src/coredump/coredumpctl.c @@ -63,7 +63,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_image_policy, image_policy_freep); COMMAND( "coredumpctl\0", "List or retrieve coredumps from the journal.", - .man_pages = "coredumpctl.1\0", + .man_pages = "coredumpctl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/creds/creds.c b/src/creds/creds.c index 50d8ec8a30..97143030cb 100644 --- a/src/creds/creds.c +++ b/src/creds/creds.c @@ -81,7 +81,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_tpm2_signature, freep); COMMAND( "systemd-creds\0", "Display and process credentials.", - .man_pages = "systemd-creds.1\0", + .man_pages = "systemd-creds(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/cryptenroll/cryptenroll.c b/src/cryptenroll/cryptenroll.c index b64c6d5da3..02f52ee190 100644 --- a/src/cryptenroll/cryptenroll.c +++ b/src/cryptenroll/cryptenroll.c @@ -122,7 +122,7 @@ COMMAND( "systemd-cryptenroll\0", "Enroll a security token or authentication credential to a LUKS volume.", .argspec = "[BLOCK-DEVICE]\0", - .man_pages = "systemd-cryptenroll.1\0", + .man_pages = "systemd-cryptenroll(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 5c711010be..7f1ad550b3 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -145,7 +145,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_fixate_volume_key, freep); COMMAND( "systemd-cryptsetup\0", "Attach or detach an encrypted block device.", - .man_pages = "systemd-cryptsetup.8\0", + .man_pages = "systemd-cryptsetup(8)\0", ); static const char* const passphrase_type_table[_PASSPHRASE_TYPE_MAX] = { diff --git a/src/delta/delta.c b/src/delta/delta.c index ed4fee237d..dd81d40e7b 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -71,7 +71,7 @@ COMMAND( "systemd-delta\0", "Find overridden configuration files.", .argspec = "[SUFFIX…]\0", - .man_pages = "systemd-delta.1\0", + .man_pages = "systemd-delta(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/detect-virt/detect-virt.c b/src/detect-virt/detect-virt.c index 36fc4f63b0..b86f563ba2 100644 --- a/src/detect-virt/detect-virt.c +++ b/src/detect-virt/detect-virt.c @@ -24,7 +24,7 @@ static enum { COMMAND( "systemd-detect-virt\0", "Detect execution in a virtualized environment.", - .man_pages = "systemd-detect-virt.1\0", + .man_pages = "systemd-detect-virt(1)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index f775ffa40c..29bf421819 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -139,7 +139,7 @@ COMMAND( "--discover\0" "--validate IMAGE\0" "--shift IMAGE UIDBASE\0", - .man_pages = "systemd-dissect.1\0", + .man_pages = "systemd-dissect(1)\0", .option_namespace = "systemd-dissect", .pager_flags = &arg_pager_flags, ); @@ -715,7 +715,7 @@ static int parse_argv(int argc, char *argv[]) { COMMAND( "mount.ddi\0", "External helper for mount.8 to mount Discoverable Disk Images (DDIs).", - .man_pages = "systemd-dissect.1\0", + .man_pages = "systemd-dissect(1)\0", .option_namespace = "mount.ddi", ); diff --git a/src/escape/escape-tool.c b/src/escape/escape-tool.c index 79d79d740d..8a8d7b3f7a 100644 --- a/src/escape/escape-tool.c +++ b/src/escape/escape-tool.c @@ -31,7 +31,7 @@ COMMAND( "systemd-escape\0", "Escape strings for usage in systemd unit names.", .argspec = "STRING…\0" "--stdin\0", - .man_pages = "systemd-escape.1\0", + .man_pages = "systemd-escape(1)\0", ); static int parse_argv(int argc, char *argv[], char ***ret_args) { diff --git a/src/factory-reset/factory-reset-tool.c b/src/factory-reset/factory-reset-tool.c index 7c86b1619c..b5e5761805 100644 --- a/src/factory-reset/factory-reset-tool.c +++ b/src/factory-reset/factory-reset-tool.c @@ -25,7 +25,7 @@ static bool arg_varlink = false; COMMAND( "systemd-factory-reset\0", "Query, request, or cancel a factory reset operation.", - .man_pages = "systemd-factory-reset.8\0", + .man_pages = "systemd-factory-reset(8)\0", ); static int parse_argv(int argc, char *argv[], char ***ret_args) { diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index cfadbea289..34784999bd 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -112,7 +112,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_label_context, mac_label_context_freep); COMMAND( "systemd-firstboot\0", "Configure basic settings of the system.", - .man_pages = "systemd-firstboot.1\0", + .man_pages = "systemd-firstboot(1)\0", ); static bool welcome_done = false; diff --git a/src/growfs/growfs.c b/src/growfs/growfs.c index 9f750a9d5f..fc1cf4af89 100644 --- a/src/growfs/growfs.c +++ b/src/growfs/growfs.c @@ -30,7 +30,7 @@ COMMAND( "systemd-growfs\0", "Grow filesystem or encrypted payload to device size.", .argspec = "MOUNTPOINT\0", - .man_pages = "systemd-growfs@.service.8\0", + .man_pages = "systemd-growfs@.service(8)\0", ); #if HAVE_LIBCRYPTSETUP diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c index b70c0b2255..60d81b38e8 100644 --- a/src/hibernate-resume/hibernate-resume.c +++ b/src/hibernate-resume/hibernate-resume.c @@ -28,7 +28,7 @@ COMMAND( .argspec = "[DEVICE [OFFSET]]\0" "--clear\0", - .man_pages = "systemd-hibernate-resume.8\0", + .man_pages = "systemd-hibernate-resume(8)\0", ); static int parse_argv(int argc, char *argv[], char ***ret_args) { diff --git a/src/home/homectl.c b/src/home/homectl.c index e7f4a27223..5fd6b18f62 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -185,7 +185,7 @@ static int acquire_bus(sd_bus **bus) { COMMAND( "homectl\0", "Create, manipulate or inspect home directories.", - .man_pages = "homectl.1\0", + .man_pages = "homectl(1)\0", .pager_flags = &arg_pager_flags, .flags = COMMAND_HELP_SEPARATE, /* the option table is very wide */ ); diff --git a/src/home/homed.c b/src/home/homed.c index a1b0d991de..c392ecd219 100644 --- a/src/home/homed.c +++ b/src/home/homed.c @@ -18,7 +18,7 @@ COMMAND( "systemd-homed\0", "Create, remove, change or inspect home areas.", - .man_pages = "systemd-homed.service.8\0", + .man_pages = "systemd-homed.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index 5ede1cb1bf..6bc4d36217 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -43,7 +43,7 @@ static sd_json_format_flags_t arg_json_format_flags = SD_JSON_FORMAT_OFF; COMMAND( "hostnamectl\0", "Query or change system hostname.", - .man_pages = "hostnamectl.1\0", + .man_pages = "hostnamectl(1)\0", ); typedef struct StatusInfo { diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index c748758fed..4ea5458b71 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -2666,7 +2666,7 @@ static bool context_check_idle(void *userdata) { COMMAND( "systemd-hostnamed\0", "Manage the system hostname and related metadata.", - .man_pages = "systemd-hostnamed.service.8\0", + .man_pages = "systemd-hostnamed.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c index 4f1049865a..d0b94493bc 100644 --- a/src/hwdb/hwdb.c +++ b/src/hwdb/hwdb.c @@ -17,7 +17,7 @@ static bool arg_strict = false; COMMAND( "systemd-hwdb\0", "Update or query the hardware database.", - .man_pages = "systemd-hwdb.8\0", + .man_pages = "systemd-hwdb(8)\0", ); VERB(verb_query, "query", "MODALIAS", 2, 2, 0, diff --git a/src/id128/id128.c b/src/id128/id128.c index 39bffd3156..defb4f756f 100644 --- a/src/id128/id128.c +++ b/src/id128/id128.c @@ -28,7 +28,7 @@ static sd_json_format_flags_t arg_json_format_flags = SD_JSON_FORMAT_OFF; COMMAND( "systemd-id128\0", "Generate and print 128-bit identifiers.", - .man_pages = "systemd-id128.1\0", + .man_pages = "systemd-id128(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/imds/imds-tool.c b/src/imds/imds-tool.c index 44315f3391..c77de0a828 100644 --- a/src/imds/imds-tool.c +++ b/src/imds/imds-tool.c @@ -55,7 +55,7 @@ COMMAND( "systemd-imds\0", "IMDS data acquisition.", .argspec = "[KEY]\0", - .man_pages = "systemd-imds.1\0", + .man_pages = "systemd-imds(1)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/imds/imdsd.c b/src/imds/imdsd.c index 7e510f9c50..6f71e50e17 100644 --- a/src/imds/imdsd.c +++ b/src/imds/imdsd.c @@ -143,7 +143,7 @@ COMMAND( "systemd-imdsd\0", "Low-level IMDS data acquisition.", .argspec = "KEY\0", - .man_pages = "systemd-imdsd@.service.8\0", + .man_pages = "systemd-imdsd@.service(8)\0", ); typedef struct Context Context; diff --git a/src/import/importctl.c b/src/import/importctl.c index 3d15cb67e6..911799d188 100644 --- a/src/import/importctl.c +++ b/src/import/importctl.c @@ -51,7 +51,7 @@ static RuntimeScope arg_runtime_scope = RUNTIME_SCOPE_SYSTEM; COMMAND( "importctl\0", "Download, import or export disk images.", - .man_pages = "importctl.1\0", + .man_pages = "importctl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/import/importd.c b/src/import/importd.c index 274c9f8add..d4abd27b12 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -2084,7 +2084,7 @@ static void manager_parse_env(Manager *m) { COMMAND( "systemd-importd\0", "Import and export VM and container images.", - .man_pages = "systemd-importd.service.8\0", + .man_pages = "systemd-importd.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/integritysetup/integritysetup.c b/src/integritysetup/integritysetup.c index 461be60905..742c1c7e05 100644 --- a/src/integritysetup/integritysetup.c +++ b/src/integritysetup/integritysetup.c @@ -44,7 +44,7 @@ DEFINE_PRIVATE_STRING_TABLE_LOOKUP_TO_STRING(dm_integrity_algorithm, IntegrityAl COMMAND( "systemd-integritysetup\0", "Attach or detach an integrity protected block device.", - .man_pages = "systemd-integritysetup@.service.8\0", + .man_pages = "systemd-integritysetup@.service(8)\0", ); static int load_key_file( diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index 3023b134a8..417951ff21 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -55,7 +55,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_file, strv_freep); COMMAND( "systemd-journal-gatewayd\0", "Serve journal events over HTTP.", - .man_pages = "systemd-journal-gatewayd.service.8\0", + .man_pages = "systemd-journal-gatewayd.service(8)\0", ); typedef struct RequestMeta { diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index a689e9bb92..e3d03dd496 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -88,7 +88,7 @@ COMMAND( "Write external journal events to journal files.", .argspec = "[{FILE|-}…]\0", .footer = "Note: file descriptors from sd_listen_fds() will be consumed, too.", - .man_pages = "systemd-journal-remote.service.8\0", + .man_pages = "systemd-journal-remote.service(8)\0", ); static const char* const journal_write_split_mode_table[_JOURNAL_WRITE_SPLIT_MAX] = { diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 0fb4e5ac61..f14c8f1338 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -81,7 +81,7 @@ COMMAND( "systemd-journal-upload\0", "Upload journal events to a remote server.", .argspec = "[-u URL] [{FILE|-}…]\0", - .man_pages = "systemd-journal-upload.service.8\0", + .man_pages = "systemd-journal-upload.service(8)\0", ); static void close_fd_input(Uploader *u); diff --git a/src/journal/bsod.c b/src/journal/bsod.c index 756f70f051..8a385790d4 100644 --- a/src/journal/bsod.c +++ b/src/journal/bsod.c @@ -33,7 +33,7 @@ COMMAND( "systemd-bsod\0", "Filter the journal to fetch the first message from the current boot with an emergency " "log level and display it as a string and a QR code.", - .man_pages = "systemd-bsod.8\0", + .man_pages = "systemd-bsod(8)\0", ); static int acquire_first_emergency_log_message(char **ret) { diff --git a/src/journal/cat.c b/src/journal/cat.c index 5452c4abf4..7bd5cd19ce 100644 --- a/src/journal/cat.c +++ b/src/journal/cat.c @@ -29,7 +29,7 @@ COMMAND( "systemd-cat\0", "Execute process with stdout/stderr connected to the journal.", .argspec = "[COMMAND…]\0", - .man_pages = "systemd-cat.1\0", + .man_pages = "systemd-cat(1)\0", ); static int parse_argv(int argc, char *argv[], char ***ret_args) { diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 58728f508c..b765926aad 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -146,7 +146,7 @@ COMMAND( "journalctl\0", "Query the journal.", .argspec = "[MATCH…]\0", - .man_pages = "journalctl.1\0", + .man_pages = "journalctl(1)\0", .option_namespace = "journalctl", .pager_flags = &arg_pager_flags, ); diff --git a/src/kernel-install/kernel-install.c b/src/kernel-install/kernel-install.c index 943640bd41..4bae8cb1e5 100644 --- a/src/kernel-install/kernel-install.c +++ b/src/kernel-install/kernel-install.c @@ -70,7 +70,7 @@ COMMAND( .footer = "This program may also be invoked as 'installkernel':\n" " installkernel [OPTION…] VERSION VMLINUZ [MAP] [INSTALLATION-DIR]\n" "(The optional arguments are passed by kernel build system, but ignored.)", - .man_pages = "kernel-install.8\0", + .man_pages = "kernel-install(8)\0", .pager_flags = &arg_pager_flags, .flags = COMMAND_HELP_SEPARATE, /* the verb table is very wide */ ); @@ -1729,7 +1729,7 @@ COMMAND( "Add and remove kernel and initrd images to and from the boot partition.", .argspec = "VERSION VMLINUZ [MAP] [INSTALLATION-DIR]\0", .footer = "This is a compat interface intended only to be called from kernel Makefiles.", - .man_pages = "kernel-install.8\0", + .man_pages = "kernel-install(8)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/keyutil/keyutil.c b/src/keyutil/keyutil.c index 76c2654f94..75cc31ba28 100644 --- a/src/keyutil/keyutil.c +++ b/src/keyutil/keyutil.c @@ -39,7 +39,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_output, freep); COMMAND( "systemd-keyutil\0", "Perform various operations on private keys and certificates.", - .man_pages = "systemd-keyutil.1\0", + .man_pages = "systemd-keyutil(1)\0", ); VERB_COMMON_HELP_AUTO_HIDDEN(); diff --git a/src/locale/localectl.c b/src/locale/localectl.c index e746fd5722..09c706553e 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -40,7 +40,7 @@ static bool arg_full = false; COMMAND( "localectl\0", "Query or change system locale and keyboard settings.", - .man_pages = "localectl.1\0", + .man_pages = "localectl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/locale/localed.c b/src/locale/localed.c index a4c01a3d41..b5875c0904 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -631,7 +631,7 @@ static bool context_check_idle(void *userdata) { COMMAND( "systemd-localed\0", "Manage system locale settings and key mappings.", - .man_pages = "systemd-localed.service.8\0", + .man_pages = "systemd-localed.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 2157f1561e..ba7c4f2208 100644 --- a/src/login/inhibit.c +++ b/src/login/inhibit.c @@ -51,7 +51,7 @@ COMMAND( .argspec = "COMMAND…\0" "--list\0", - .man_pages = "systemd-inhibit.1\0", + .man_pages = "systemd-inhibit(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 555034069e..67d7429749 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -58,7 +58,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_property, strv_freep); COMMAND( "loginctl\0", "Send control commands to or query the login manager.", - .man_pages = "loginctl.1\0", + .man_pages = "loginctl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/login/logind.c b/src/login/logind.c index 3552ed2eed..566bc649ae 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1351,7 +1351,7 @@ static int manager_run(Manager *m) { COMMAND( "systemd-logind\0", "Manage user logins and devices and privileged operations.", - .man_pages = "systemd-logind.service.8\0", + .man_pages = "systemd-logind.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index fbbbb5115e..e7f07fded3 100644 --- a/src/machine-id-setup/machine-id-setup-main.c +++ b/src/machine-id-setup/machine-id-setup-main.c @@ -31,7 +31,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_image_policy, image_policy_freep); COMMAND( "systemd-machine-id-setup\0", "Initialize /etc/machine-id from a random source.", - .man_pages = "systemd-machine-id-setup.1\0", + .man_pages = "systemd-machine-id-setup(1)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 93722baa1c..34111e3a5d 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -119,7 +119,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_setenv, strv_freep); COMMAND( "machinectl\0", "Send control commands to or query the virtual machine and container registration manager.", - .man_pages = "machinectl.1\0", + .man_pages = "machinectl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/machine/machined.c b/src/machine/machined.c index 58edc628a6..66d128c15b 100644 --- a/src/machine/machined.c +++ b/src/machine/machined.c @@ -347,7 +347,7 @@ static bool check_idle(void *userdata) { COMMAND( "systemd-machined\0", "Manage registrations of local VMs and containers.", - .man_pages = "systemd-machined.service.8\0", + .man_pages = "systemd-machined.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/measure/measure-tool.c b/src/measure/measure-tool.c index b6ec21df35..6a0b40d53e 100644 --- a/src/measure/measure-tool.c +++ b/src/measure/measure-tool.c @@ -68,7 +68,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_sections, free_sections); COMMAND( "systemd-measure\0", "Pre-calculate and sign PCR hash for a unified kernel image (UKI).", - .man_pages = "systemd-measure.1\0", + .man_pages = "systemd-measure(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c index 3997447463..bdaf9e29a8 100644 --- a/src/modules-load/modules-load.c +++ b/src/modules-load/modules-load.c @@ -40,7 +40,7 @@ COMMAND( "systemd-modules-load\0", "Load statically configured kernel modules.", .argspec = "[CONFIGURATION FILE…]\0", - .man_pages = "systemd-modules-load.service.8\0", + .man_pages = "systemd-modules-load.service(8)\0", ); static int modules_list_append_suffix(OrderedSet **module_set, char *modp) { diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 5d989188c8..37732ec19f 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -97,7 +97,7 @@ COMMAND( .option_groups = "Common options\0" "Mount options\0", - .man_pages = "systemd-mount.1\0", + .man_pages = "systemd-mount(1)\0", .flags = COMMAND_VERBS_SHARED, .pager_flags = &arg_pager_flags, ); @@ -108,7 +108,7 @@ COMMAND( "WHAT|WHERE…\0", .option_groups = "Common options\0", - .man_pages = "systemd-mount.1\0", + .man_pages = "systemd-mount(1)\0", .flags = COMMAND_VERBS_SHARED, .pager_flags = &arg_pager_flags, ); diff --git a/src/mstack/mstack-tool.c b/src/mstack/mstack-tool.c index 2b3b5496b9..a8d38d9164 100644 --- a/src/mstack/mstack-tool.c +++ b/src/mstack/mstack-tool.c @@ -49,7 +49,7 @@ COMMAND( "WHAT\0" "--mount WHAT WHERE\0" "--umount WHERE\0", - .man_pages = "systemd-mstack.1\0", + .man_pages = "systemd-mstack(1)\0", .option_namespace = "systemd-mstack", .pager_flags = &arg_pager_flags, ); @@ -191,7 +191,7 @@ static int parse_argv(int argc, char *argv[]) { COMMAND( "mount.mstack\0", "External helper for mount.8 to mount mount stacks.", - .man_pages = "systemd-mstack.1\0", + .man_pages = "systemd-mstack(1)\0", .option_namespace = "mount.mstack", ); diff --git a/src/mute-console/mute-console.c b/src/mute-console/mute-console.c index a3bf83fef7..dc1bbd994d 100644 --- a/src/mute-console/mute-console.c +++ b/src/mute-console/mute-console.c @@ -30,7 +30,7 @@ static bool arg_varlink = false; COMMAND( "systemd-mute-console\0", "Mute status output to the console.", - .man_pages = "systemd-mute-console.1\0", + .man_pages = "systemd-mute-console(1)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/network/generator/network-generator-main.c b/src/network/generator/network-generator-main.c index c667200aa4..45c2b8e045 100644 --- a/src/network/generator/network-generator-main.c +++ b/src/network/generator/network-generator-main.c @@ -30,7 +30,7 @@ COMMAND( "systemd-network-generator\0", "Generate network configuration from the kernel command line.", .argspec = "[-- KERNEL_CMDLINE]\0", - .man_pages = "systemd-network-generator.service.8\0", + .man_pages = "systemd-network-generator.service(8)\0", ); static int network_save(Network *network, const char *dest_dir) { diff --git a/src/network/networkctl.c b/src/network/networkctl.c index d6b0f3bad4..0268471392 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -41,7 +41,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_drop_in, freep); COMMAND( "networkctl\0", "Query and control the networking subsystem.", - .man_pages = "networkctl.1\0", + .man_pages = "networkctl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/network/networkd.c b/src/network/networkd.c index e6b2d3e227..0f89e970fc 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -24,7 +24,7 @@ COMMAND( "systemd-networkd\0", "Manage and configure network devices, create virtual network devices.", - .man_pages = "systemd-networkd.service.8\0", + .man_pages = "systemd-networkd.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/network/wait-online/wait-online.c b/src/network/wait-online/wait-online.c index a531213665..1b2d703bea 100644 --- a/src/network/wait-online/wait-online.c +++ b/src/network/wait-online/wait-online.c @@ -33,7 +33,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_ignore, strv_freep); COMMAND( "systemd-networkd-wait-online\0", "Block until network is configured.", - .man_pages = "systemd-networkd-wait-online.service.8\0", + .man_pages = "systemd-networkd-wait-online.service(8)\0", ); static int parse_interface_with_operstate_range(const char *str) { diff --git a/src/notify/notify.c b/src/notify/notify.c index 7f6e45636a..85a5fc9c44 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -62,7 +62,7 @@ COMMAND( "[VARIABLE=VALUE…]\0" "--exec [VARIABLE=VALUE…] ; -- CMDLINE…\0" "--fork -- CMDLINE…\0", - .man_pages = "systemd-notify.1\0", + .man_pages = "systemd-notify(1)\0", ); static int get_manager_pid(PidRef *ret) { diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 484151f239..7d2a64527c 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -322,7 +322,7 @@ COMMAND( "systemd-nspawn\0", "Spawn a command or OS in a lightweight container.", .argspec = "[PATH] [ARGUMENTS…]\0", - .man_pages = "systemd-nspawn.1\0", + .man_pages = "systemd-nspawn(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/oom/oomctl.c b/src/oom/oomctl.c index e8eb5900a3..4c35c57d56 100644 --- a/src/oom/oomctl.c +++ b/src/oom/oomctl.c @@ -17,7 +17,7 @@ static PagerFlags arg_pager_flags = 0; COMMAND( "oomctl\0", "Manage or inspect the userspace OOM killer.", - .man_pages = "oomctl.1\0", + .man_pages = "oomctl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/oom/oomd.c b/src/oom/oomd.c index df53879582..e953207e68 100644 --- a/src/oom/oomd.c +++ b/src/oom/oomd.c @@ -24,7 +24,7 @@ static bool arg_dry_run = false; COMMAND( "systemd-oomd\0", "Run the userspace out-of-memory (OOM) killer.", - .man_pages = "systemd-oomd.8\0", + .man_pages = "systemd-oomd(8)\0", ); static int parse_argv(int argc, char *argv[]) { diff --git a/src/path/path-tool.c b/src/path/path-tool.c index 7840a7e36d..12e29678ad 100644 --- a/src/path/path-tool.c +++ b/src/path/path-tool.c @@ -24,7 +24,7 @@ COMMAND( "systemd-path\0", "Show system and user paths.", .argspec = "[NAME…]\0", - .man_pages = "systemd-path.1\0", + .man_pages = "systemd-path(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/pcrextend/pcrextend.c b/src/pcrextend/pcrextend.c index 2356936753..f0cc7500f9 100644 --- a/src/pcrextend/pcrextend.c +++ b/src/pcrextend/pcrextend.c @@ -52,7 +52,7 @@ COMMAND( "--machine-id\0" "--product-id\0" "--login=UID|USER\0", - .man_pages = "systemd-pcrextend.8\0", + .man_pages = "systemd-pcrextend(8)\0", ); #define EXTENSION_STRING_SAFE_LIMIT 1024 diff --git a/src/pcrlock/pcrlock.c b/src/pcrlock/pcrlock.c index 5bb1db429c..8803d087f3 100644 --- a/src/pcrlock/pcrlock.c +++ b/src/pcrlock/pcrlock.c @@ -106,7 +106,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_entry_token, freep); COMMAND( "systemd-pcrlock\0", "Manage a TPM2 PCR lock.", - .man_pages = "systemd-pcrlock.8\0", + .man_pages = "systemd-pcrlock(8)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 18e23a137e..d544b3022a 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -54,7 +54,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_extension_images, strv_freep); COMMAND( "portablectl\0", "Attach or detach portable services in the local system.", - .man_pages = "portablectl.1\0", + .man_pages = "portablectl(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/portable/portabled.c b/src/portable/portabled.c index 09197aa651..e42ffed4d4 100644 --- a/src/portable/portabled.c +++ b/src/portable/portabled.c @@ -143,7 +143,7 @@ static bool check_idle(void *userdata) { COMMAND( "systemd-portabled\0", "Manage registrations of portable images.", - .man_pages = "systemd-portabled.service.8\0", + .man_pages = "systemd-portabled.service(8)\0", .option_namespace = "service", .option_groups = "Options\0" diff --git a/src/ptyfwd/ptyfwd-tool.c b/src/ptyfwd/ptyfwd-tool.c index ff94ba0448..a4c1357da5 100644 --- a/src/ptyfwd/ptyfwd-tool.c +++ b/src/ptyfwd/ptyfwd-tool.c @@ -31,7 +31,7 @@ COMMAND( "systemd-pty-forward\0", "Run command with a custom terminal background color or title.", .argspec = "COMMAND…\0", - .man_pages = "systemd-pty-forward.1\0", + .man_pages = "systemd-pty-forward(1)\0", ); static int parse_argv(int argc, char *argv[], char ***remaining_args) { diff --git a/src/random-seed/random-seed-tool.c b/src/random-seed/random-seed-tool.c index b15c1e882e..5286b1a96a 100644 --- a/src/random-seed/random-seed-tool.c +++ b/src/random-seed/random-seed-tool.c @@ -46,7 +46,7 @@ static SeedAction arg_action = _ACTION_INVALID; COMMAND( "systemd-random-seed\0", "Load and save the system random seed at boot and shutdown.", - .man_pages = "systemd-random-seed.8\0", + .man_pages = "systemd-random-seed(8)\0", ); static CreditEntropy may_credit(int seed_fd) { diff --git a/src/repart/repart.c b/src/repart/repart.c index 7d8433921b..c77cad685a 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -252,7 +252,7 @@ COMMAND( "systemd-repart\0", "Grow and add partitions to a partition table, and generate disk images (DDIs).", .argspec = "[DEVICE]\0", - .man_pages = "systemd-repart.8\0", + .man_pages = "systemd-repart(8)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/report/report-files-server.c b/src/report/report-files-server.c index 423c8dd3f5..ef8458e553 100644 --- a/src/report/report-files-server.c +++ b/src/report/report-files-server.c @@ -14,7 +14,7 @@ COMMAND( "systemd-report-files\0", "Report the contents of files as system report metrics.", - .man_pages = "systemd-report-files@.service.8\0", + .man_pages = "systemd-report-files@.service(8)\0", ); static int vl_server(void) { diff --git a/src/report/report-sign-plain.c b/src/report/report-sign-plain.c index 7923ce523f..76491f51db 100644 --- a/src/report/report-sign-plain.c +++ b/src/report/report-sign-plain.c @@ -30,7 +30,7 @@ COMMAND( "systemd-report-sign-plain\0", "Sign system reports with a local software key.", - .man_pages = "systemd-report-sign-plain@.service.8\0", + .man_pages = "systemd-report-sign-plain@.service(8)\0", ); #define REPORT_SIGN_PLAIN_DIR "/var/lib/systemd/report.sign.plain" diff --git a/src/report/report-sign-tsm.c b/src/report/report-sign-tsm.c index d276a1e031..0a63936eca 100644 --- a/src/report/report-sign-tsm.c +++ b/src/report/report-sign-tsm.c @@ -19,7 +19,7 @@ COMMAND( "systemd-report-sign-tsm\0", "Get an attestation report via configfs Trusted Security Module (TSM) " "that includes the hash of the system report.", - .man_pages = "systemd-report-sign-tsm@.service.8\0", + .man_pages = "systemd-report-sign-tsm@.service(8)\0", ); typedef struct SignParameters { diff --git a/src/report/report.c b/src/report/report.c index df79ac6e38..bb4b0329d6 100644 --- a/src/report/report.c +++ b/src/report/report.c @@ -58,7 +58,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_extra_headers, strv_freep); COMMAND( "systemd-report\0", "Acquire metrics from local sources.", - .man_pages = "systemd-report.1\0", + .man_pages = "systemd-report(1)\0", .pager_flags = &arg_pager_flags, ); diff --git a/src/resolve/resolvconf-compat.c b/src/resolve/resolvconf-compat.c index 018908bcc0..bc8c5185ff 100644 --- a/src/resolve/resolvconf-compat.c +++ b/src/resolve/resolvconf-compat.c @@ -24,7 +24,7 @@ typedef enum LookupType { COMMAND( "resolvconf\0", "Register DNS server and domain configuration with systemd-resolved.", - .man_pages = "resolvectl.1\0", + .man_pages = "resolvectl(1)\0", .argspec = "-a INTERFACE /dev/null || continue - $i --help >/dev/null + help="$($i --help)" + (! grep -E '^See the [^[:space:]]+\.[[:alnum:]]+ man page for details\.$' <<<"$help" >/dev/null) $i --introspect-cli | jq -e \ '.mediaType == "application/vnd.io.systemd.cli-introspection-0"'