Advertisement
Guest User

Untitled

a guest
Apr 12th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. root@ubuntu4:~# ls /lib/systemd/system/ | grep 'kexec'
  2. kexec.target
  3. kexec.target.wants
  4. plymouth-kexec.service
  5. systemd-kexec.service
  6. root@ubuntu4:~# cat /lib/systemd/system/kexec.target
  7. # SPDX-License-Identifier: LGPL-2.1+
  8. #
  9. # This file is part of systemd.
  10. #
  11. # systemd is free software; you can redistribute it and/or modify it
  12. # under the terms of the GNU Lesser General Public License as published by
  13. # the Free Software Foundation; either version 2.1 of the License, or
  14. # (at your option) any later version.
  15.  
  16. [Unit]
  17. Description=Reboot via kexec
  18. Documentation=man:systemd.special(7)
  19. DefaultDependencies=no
  20. Requires=systemd-kexec.service
  21. After=systemd-kexec.service
  22. AllowIsolate=yes
  23.  
  24. [Install]
  25. Alias=ctrl-alt-del.target
  26. root@ubuntu4:~# cat /lib/systemd/system/kexec.target.wants
  27. cat: /lib/systemd/system/kexec.target.wants: Is a directory
  28. root@ubuntu4:~# ls /lib/systemd/system/kexec.target.wants
  29. plymouth-kexec.service
  30. root@ubuntu4:~# cat /lib/systemd/system/plymouth-kexec.service
  31. [Unit]
  32. Description=Show Plymouth Reboot with kexec Screen
  33. After=getty@tty1.service display-manager.service plymouth-start.service
  34. Before=systemd-kexec.service
  35. DefaultDependencies=no
  36. ConditionKernelCommandLine=!plymouth.enable=0
  37. ConditionKernelCommandLine=!nosplash
  38. ConditionKernelCommandLine=splash
  39.  
  40. [Service]
  41. ExecStart=/sbin/plymouthd --mode=shutdown --attach-to-session
  42. ExecStartPost=-/bin/plymouth show-splash
  43. Type=forking
  44. root@ubuntu4:~# cat /lib/systemd/system/systemd-kexec.service
  45. # SPDX-License-Identifier: LGPL-2.1+
  46. #
  47. # This file is part of systemd.
  48. #
  49. # systemd is free software; you can redistribute it and/or modify it
  50. # under the terms of the GNU Lesser General Public License as published by
  51. # the Free Software Foundation; either version 2.1 of the License, or
  52. # (at your option) any later version.
  53.  
  54. [Unit]
  55. Description=Reboot via kexec
  56. Documentation=man:systemd-halt.service(8)
  57. DefaultDependencies=no
  58. Requires=shutdown.target umount.target final.target
  59. After=shutdown.target umount.target final.target
  60.  
  61. [Service]
  62. Type=oneshot
  63. ExecStart=/bin/systemctl --force kexec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement