V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
erlinux
V2EX  ›  Linux

Linux 重启的问题

  •  
  •   erlinux · 2017-12-26 16:35:03 +08:00 · 2634 次点击
    这是一个创建于 2305 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    3 条回复    2017-12-26 19:58:58 +08:00
    yulgang
        1
    yulgang  
       2017-12-26 16:50:06 +08:00
    https://wiki.archlinux.org/index.php/systemd#Power_management

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

    这时的 reboot 似乎只是为了兼容传统命令。
    araraloren
        2
    araraloren  
       2017-12-26 16:52:40 +08:00
    Reboot is just a symlink to systemctl .
    Attenuation
        3
    Attenuation  
       2017-12-26 19:58:58 +08:00
    lrwxrwxrwx 1 root root 9 12 月 18 22:02 /usr/bin/reboot -> systemctl
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5510 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:27 · PVG 11:27 · LAX 20:27 · JFK 23:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.