在 RedHat 7 中更改 systemd 服务
changing systemd service in RedHat 7
我想要RedHat/CentOS7,开机后做点什么。
我通过编辑该服务调用的脚本来更改 rhel-configure.service:/lib/systemd/rhel-configure (& touch /.unconfigured) 并添加我想在启动后执行的行。
启动后没有任何反应。也没有在 journalctl 输出中找到任何东西。
我如何调试它或让它工作?
通常情况下,当你想在启动时执行任务时,你会使用 rc-local 服务。
一切都在这里解释:http://www.certdepot.net/rhel7-configure-rc-local-service/
我想要RedHat/CentOS7,开机后做点什么。 我通过编辑该服务调用的脚本来更改 rhel-configure.service:/lib/systemd/rhel-configure (& touch /.unconfigured) 并添加我想在启动后执行的行。
启动后没有任何反应。也没有在 journalctl 输出中找到任何东西。
我如何调试它或让它工作?
通常情况下,当你想在启动时执行任务时,你会使用 rc-local 服务。 一切都在这里解释:http://www.certdepot.net/rhel7-configure-rc-local-service/