Добрый день. Сразу к делу.
qlist -Iv dhcp
app-vim/dhcpd-syntax-20030825
net-misc/dhcp-4.3.1
cat /etc/dhcp/dhcpd.tunvpn.conf
log-facility local7;
authoritative;
default-lease-time 21600;
max-lease-time 28800;
option ip-forwarding on;
ddns-update-style none;
subnet 10.1.5.0 netmask 255.255.255.0 {
option routers 10.1.5.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.1.5.255;
option domain-name-servers 10.1.5.1;
option ntp-servers 10.1.5.1;
range 10.1.5.6 10.1.5.36;
}
cat /etc/conf.d/dhcpd.tunvpn
DHCPD_CONF="/etc/dhcp/dhcpd.tunvpn.conf"
DHCPD_IFACE="tunvpn"
$ ls -l /etc/init.d/dhcpd.tunvpn
lrwxrwxrwx 1 root root 5 янв 5 21:57 /etc/init.d/dhcpd.tunvpn -> dhcpd
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
.......................................................
.......................................................
.......................................................
5: tunvpn: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/none
inet 10.1.5.1 peer 10.1.5.2/32 scope global tunvpn
valid_lft forever preferred_lft forever
/etc/init.d/dhcpd.tunvpn -v start
* Starting dhcpd.tunvpn ...
* start-stop-daemon: fopen `//var/run/dhcp/dhcpd.tunvpn.pid': No such file or directory
* Detaching to start `/usr/sbin/dhcpd' ...
* start-stop-daemon: failed to start `/usr/sbin/dhcpd' [ !! ]
* ERROR: dhcpd.tunvpn failed to start
Думал проблема в двойном слеше (//), но для корня можно писать так (в инит_скрипте я правил на /).
Я видимо напортачил в dhcpd.tunvpn.conf. Ткните носом.