我已经安装了autofs,它正确地挂载了我的共享目录。
然而,现在,在每次引导之后,在自动生成实际工作之前,我必须手动运行sudo upstart autofs start。
我认为通过突触手动安装autofs,虽然已经有一段时间了。所讨论的计算机被用作轻量级服务器,很少重新启动,因此必须手动启动服务并不是什么大不了的事情,但我的备份在运行autofs之前无法工作,所以我确实很担心。
发布于 2011-12-08 23:34:02
将此添加到/etc/rc.local中
使用任何编辑器:
图解
gksu gedit /etc/rc.local命令行
sudo -e /etc/rc.local 添加/编辑以下内容:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
service autofs start &
mount -a
exit 0你可能会改善一点,4,60秒的睡眠可能过多,我会尝试一个,如果需要的话,增加睡眠的次数。
使其可执行
sudo chmod u+x /etc/rc.local重新启动,它就能工作了。如果没有,试着按照下面的错误报告添加一个睡眠。
另见错误报告
https://askubuntu.com/questions/71470
复制相似问题