我不清楚服务器启动时如何启动服务,我读了一些关于将脚本添加到/etc/init.d的其他问题,但是我只需要在命令行中执行一行:
@H_403_18@sudo /etc/init.d/avahi-daemon restart
但是我有一些问题,首先,我显然需要使用sudo,它给了我以下内容:
ngl-server-01:~% sudo /etc/init.d/avahi-daemon start Rather than invoking init scripts through /etc/init.d,use the service(8) utility,e.g. service avahi-daemon start Since the script you are attempting to invoke has been converted to an Upstart job,you may also use the start(8) utility,e.g. start avahi-daemon
但当我尝试avahi-daemon开始时,我得到:
Too many arguments
为什么是这样?你会如何开始这项服务?
更新
同样,我如何在启动时安装磁盘?