我只想在启动时运行一个非常简单的命令。我该怎么做?我在谷歌上搜索了一下,但是找到的例子都很复杂,而我只需要在启动时运行这个脚本。我该怎么做?
脚本:
./init.d/opscenter-agent start
脚本:
./init.d/opscenter-agent start
gnome-session-properties
并按下Enter键);
/etc/rc.local
行的exit 0
之前。(要编辑它,请在终端中粘贴sudo nano /etc/rc.local
。)/etc/rc.local
。 - desgua/etc/init.d/motd
是一个最小的示例,它在启动时运行某些内容,但是使用了 Required-Start
参数设置来确定何时发生。/etc/init.d/cron
是一个简单的守护进程的起点(除了 parse_environment
函数,你可能不需要它)。