[Unit] Description=Set hostname based on IP from LDAP After=network.target [Service] Type=oneshot ExecStart=/usr/bin/ldap-hostname [Install] WantedBy=multi-user.target