HEX
Server: nginx/1.28.0
System: Linux server-one 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.3.23
Disabled: NONE
Upload Files
File: //usr/lib/systemd/system/hc-net-ifup@.service
# 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/dhcp/dhclient.%i.leases %i
PIDFile=/run/dhclient.%i.pid