首先我并没有使用inetd或xinetd,因为麻烦,而且容易出问题,但发现独立tftpd-hpa不能开机启动,即使用rcconf或sysv-rc-conf配置也不行。
搜索关键字init: tftpd-hpa main process ended
终于找到:
I did NOT need to edit TFTP_ADDRESS in /etc/default/tftpd-hpa. I only needed to change the 'start on' condition in /etc/init/tftpd-hpa.conf to:
start on (filesystem and net-device-up IFACE!=lo)
The service started successfully after I made this change, and rebooted.
附上启动log:
[ 9.189652] Bluetooth: BNEP filters: protocol multicast
[ 9.189656] Bluetooth: BNEP socket layer initialized
[ 9.193742] Bluetooth: RFCOMM TTY layer initialized
[ 9.193750] Bluetooth: RFCOMM socket layer initialized
[ 9.193754] Bluetooth: RFCOMM ver 1.11
[ 9.287241] init: cups main process (910) killed by HUP signal
[ 9.287248] init: cups main process ended, respawning
[ 9.761130] init: tftpd-hpa main process (1071) terminated with status 66
[ 9.761138] init: tftpd-hpa main process ended, respawning
[ 10.192172] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[ 10.193888] vboxdrv: Found 4 processor cores.
[ 10.194457] vboxdrv: fAsync=0 offMin=0x45c offMax=0x5ade
[ 10.194537] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
[ 10.194538] vboxdrv: Successfully loaded version 4.3.34_Ubuntu (interface 0x001a000b).
[ 10.198357] r8169 0000:02:00.0 eth0: link down
[ 10.198435] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.199668] r8169 0000:02:00.0 eth0: link down
[ 10.205909] vboxpci: IOMMU not found (not registered)
[ 10.206648] init: samba-ad-dc main process (1104) terminated with status 1
[ 10.997367] init: plymouth-upstart-bridge main process ended, respawning
[ 11.008025] init: plymouth-upstart-bridge main process (1253) killed by TERM signal
[ 12.021271] r8169 0000:02:00.0 eth0: link up
[ 12.021281] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 19.481302] FAT-fs (sdb4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 19.484265] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 39.335500] audit_printk_skb: 168 callbacks suppressed
[ 39.335502] audit: type=1400 audit(1450152486.352:68): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2367 comm="apparmor_parser"
[ 39.335508] audit: type=1400 audit(1450152486.352:69): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2367 comm="apparmor_parser"
[ 39.335724] audit: type=1400 audit(1450152486.352:70): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2367 comm="apparmor_parser"
[ 69.377194] systemd-hostnamed[2425]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 1616.858900] init: tty1 main process ended, respawning
关于upstatrt:
http://www.ibm.com/developerworks/cn/linux/1407_liuming_init2/
http://blog.csdn.net/ladofwind/article/details/37762365
阅读(9053) | 评论(0) | 转发(0) |