HEX
Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2k-fips
System: Linux f17.eelserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User: zulfiqar (1155)
PHP: 8.2.0
Disabled: mail, exec, system, popen, proc_open, shell_exec, passthru, show_source
Upload Files
File: //lib/systemd/system/[email protected]
# Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2019 Hetzner Online GmbH
#
# Licensed under the MIT License. See the LICENSE accompanying this file
# for the specific language governing permissions and limitations under
# the License.

# This service start a DHCP client on private network interfaces

[Unit]
Description=Enable Hetzner Cloud private network interfaces %i
After=network-online.target
#This makes sure all subprocesses will be killed if the PNI is removed
BindsTo=sys-subsystem-net-devices-%i.device

#We don't want to run if it already being managed by network.service
ConditionPathExists=!/run/dhclient-%i.pid

[Service]
RemainAfterExit=true
ExecStart=/sbin/dhclient -1 -4 -v -pf /run/dhclient-%i.pid -lf /var/lib/dhclient/dhclient-%i.lease %i
PIDFile=/run/dhclient-%i.pid