V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
erlinux
V2EX  ›  Linux

Linux 重启的问题

  •  
  •   erlinux · Dec 26, 2017 · 3495 views
    This topic created in 3049 days ago, the information mentioned may be changed or developed.

    请问 systemctl reboot 和 reboot 有啥本质上的区别?

    是不是 systemd 接管了一切,所以原先的 reboot 已经无法操作 systemd 的相关了?

    3 replies    2017-12-26 19:58:58 +08:00
    yulgang
        1
    yulgang  
       Dec 26, 2017
    https://wiki.archlinux.org/index.php/systemd#Power_management

    从这里看 似乎是在没有其他用户登录的情况下普通用户使用 systemctl reboot 是可以成功执行的,无需 root 权限,有其他用户登录时才需要 root 密码。

    这时的 reboot 似乎只是为了兼容传统命令。
    araraloren
        2
    araraloren  
       Dec 26, 2017
    Reboot is just a symlink to systemctl .
    Attenuation
        3
    Attenuation  
       Dec 26, 2017
    lrwxrwxrwx 1 root root 9 12 月 18 22:02 /usr/bin/reboot -> systemctl
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2340 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:38 · PVG 09:38 · LAX 18:38 · JFK 21:38
    ♥ Do have faith in what you're doing.