diff options
Diffstat (limited to 'recipes-core/set-hostname/files/set-hostname.service')
-rw-r--r-- | recipes-core/set-hostname/files/set-hostname.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-core/set-hostname/files/set-hostname.service b/recipes-core/set-hostname/files/set-hostname.service new file mode 100644 index 0000000..306528b --- /dev/null +++ b/recipes-core/set-hostname/files/set-hostname.service @@ -0,0 +1,13 @@ +[Unit] +ConditionPathExists=|!/etc/hostname +Wants=network-pre.target +Before=network-pre.target +After=local-fs.target +After=sys-subsystem-net-devices-eth0.device + +[Service] +Type=oneshot +ExecStart=/usr/bin/sethostname + +[Install] +WantedBy=network.target |