我有一个装有 debian jessie 的 VPS。我希望当我通过 ssh 连接时显示动态 motd。我尝试过
update-rc.d motd defaults
(不给出输出),systemctl enable motd
给出:
update-rc.d: warning: enable action will have no effect on runlevel 1
Failed to execute operation: No such file or directory
systemctl status motd
说:
motd.service
Loaded: masked (/dev/null)
Active: inactive (dead)
然而该脚本位于 /etc/rc*.d 中。设法显示的唯一方法是通过发出service motd start
(这会创建 /var/run/motd.dynamic,顺便说一下,在重新启动后不会持续存在)