Ubuntu Pastebin

Paste from Irreleph4nt at Fri, 5 Feb 2016 21:18:26 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[journalctl -u isc-dhcp-server.service]

Feb 05 22:10:17 ubudc systemd[1]: Starting ISC DHCP IPv4 server...
Feb 05 22:10:17 ubudc sh[1216]: /usr/bin/dirname: fehlender Operand
Feb 05 22:10:17 ubudc sh[1216]: „/usr/bin/dirname --help“ liefert weitere Informationen.
Feb 05 22:10:17 ubudc systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Feb 05 22:10:17 ubudc systemd[1]: Failed to start ISC DHCP IPv4 server.
Feb 05 22:10:17 ubudc systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Feb 05 22:10:17 ubudc systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.


[/lib/systemd/system/isc-dhcp-server.service]
[Unit]
Description=ISC DHCP IPv4 server
Documentation=man:dhcpd(8)
Wants=network-online.target
After=network-online.target
After=time-sync.target
ConditionPathExists=/etc/default/isc-dhcp-server
ConditionPathExists=|/etc/ltsp/dhcpd.conf
ConditionPathExists=|/etc/dhcp/dhcpd.conf

[Service]
EnvironmentFile=/etc/default/isc-dhcp-server
RuntimeDirectory=dhcp-server
# Allow dhcp server to write lease and pid file as 'dhcpd' user
ExecStartPre=/bin/sh -ec '\
    DHCPD_PID_DIR=`/usr/bin/dirname $DHCPD_PID`; \
    /bin/chown dhcpd:dhcpd $DHCPD_PID_DIR'
# The leases files need to be root:root even when dropping privileges
ExecStart=/bin/sh -ec '\
    CONFIG_FILE=/etc/dhcp/dhcpd.conf; \
    if [ -f /etc/ltsp/dhcpd.conf ]; then CONFIG_FILE=/etc/ltsp/dhcpd.conf; fi; \
    [ -e /var/lib/dhcp/dhcpd.leases ] || touch /var/lib/dhcp/dhcpd.leases; \
    chown root:root /var/lib/dhcp /var/lib/dhcp/dhcpd.leases*; \
    exec dhcpd -user dhcpd -group dhcpd -f -4 -pf $DHCPD_PID -cf $CONFIG_FILE $INTERFACES'

[Install]
WantedBy=multi-user.target
Download as text