Home Explore Blog CI



man-pages

8th chunk of `systemctl.man`
75e98d28e9e7314b64bc647612b43533cfd92a46355c1d2b0000000100000fa6
 future boots, unless --runtime is passed, in which case
           the settings only apply until the next reboot. The syntax of the property assignment follows closely the syntax of assignments in unit files.

           Example: systemctl set-property foobar.service CPUWeight=200

           If the specified unit appears to be inactive, the changes will be only stored on disk as described previously hence they will be effective when the unit will be started.

           Note that this command allows changing multiple properties at the same time, which is preferable over setting them individually.

           Example: systemctl set-property foobar.service CPUWeight=200 MemoryMax=2G IPAccounting=yes

           Like with unit file configuration settings, assigning an empty setting usually resets a property to its defaults.

           Example: systemctl set-property avahi-daemon.service IPAddressDeny=

       bind UNIT PATH [PATH]
           Bind-mounts a file or directory from the host into the specified unit's mount namespace. The first path argument is the source file or directory on the host, the second path argument is the destination file or
           directory in the unit's mount namespace. When the latter is omitted, the destination path in the unit's mount namespace is the same as the source path on the host. When combined with the --read-only switch, a
           ready-only bind mount is created. When combined with the --mkdir switch, the destination path is first created before the mount is applied.

           Note that this option is currently only supported for units that run within a mount namespace (e.g.: with RootImage=, PrivateMounts=, etc.). This command supports bind-mounting directories, regular files, device
           nodes, AF_UNIX socket nodes, as well as FIFOs. The bind mount is ephemeral, and it is undone as soon as the current unit process exists. Note that the namespace mentioned here, where the bind mount will be added
           to, is the one where the main service process runs. Other processes (those exececuted by ExecReload=, ExecStartPre=, etc.) run in distinct namespaces.

       mount-image UNIT IMAGE [PATH [PARTITION_NAME:MOUNT_OPTIONS]]
           Mounts an image from the host into the specified unit's mount namespace. The first path argument is the source image on the host, the second path argument is the destination directory in the unit's mount namespace
           (i.e. inside RootImage=/RootDirectory=). The following argument, if any, is interpreted as a colon-separated tuple of partition name and comma-separated list of mount options for that partition. The format is the
           same as the service MountImages= setting. When combined with the --read-only switch, a ready-only mount is created. When combined with the --mkdir switch, the destination path is first created before the mount is
           applied.

           Note that this option is currently only supported for units that run within a mount namespace (i.e. with RootImage=, PrivateMounts=, etc.). Note that the namespace mentioned here where the image mount will be
           added to, is the one where the main service process runs. Note that the namespace mentioned here, where the bind mount will be added to, is the one where the main service process runs. Other processes (those
           exececuted by ExecReload=, ExecStartPre=, etc.) run in distinct namespaces.

           Example:

               systemctl mount-image foo.service /tmp/img.raw /var/lib/image root:ro,nosuid

               systemctl mount-image --mkdir bar.service /tmp/img.raw /var/lib/baz/img

       service-log-level SERVICE [LEVEL]
           If the LEVEL argument is not given, print the current log level as reported by service SERVICE.

           If the optional argument LEVEL is provided, then change the current log level of the service to LEVEL. The log level should be a typical syslog log level, i.e. a value in the range 0...7 or one of the strings

Title: systemctl Commands: bind, mount-image, service-log-level
Summary
This section describes the `bind`, `mount-image`, and `service-log-level` commands for systemctl. `bind` bind-mounts a file or directory from the host into a unit's mount namespace, optionally read-only and with directory creation. `mount-image` mounts an image from the host into a unit's mount namespace, with options for read-only and directory creation, and partition/mount settings. `service-log-level` prints or changes the log level of a service.