Writing unit files The syntax ofsystemd'sunit filesis inspired by XDG Desktop Entry Specification.desktopfiles, which are in turn inspired by Microsoft Windows.inifiles. Unit files are loaded from two locations. From lowest to highest precedence they are: /usr/lib/systemd/system/: units provided...
This is mostly equivalent to systemctl start poweroff.target --job-mode=replace-irreversibly --no-block, but also prints a wall message to all users. This command is asynchronous; it will return after the power-off operation is enqueued, without waiting for it to complete. If combined with ...