Skip to content

Commit

Permalink
Merge pull request #214 from scaleway/jrmtb/import-systemd-units
Browse files Browse the repository at this point in the history
Import systemd network setup units
  • Loading branch information
superseed authored Jun 21, 2018
2 parents c5fe6b9 + a763ba1 commit 273c47c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bases/overlay-systemd/etc/systemd/system-preset/scw.preset
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
enable scw-generate-net-config
enable scw-net-ipv6
enable scw-fetch-ssh-keys
enable scw-generate-ssh-keys
enable scw-sync-kernel-modules
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Generate network configuration
Before=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
ExecStart=/usr/local/sbin/scw-generate-net-config

[Install]
WantedBy=network.target
10 changes: 10 additions & 0 deletions bases/overlay-systemd/etc/systemd/system/scw-net-ipv6.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Configure IPv6 networking
After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/local/sbin/scw-net-ipv6

[Install]
WantedBy=multi-user.target

0 comments on commit 273c47c

Please sign in to comment.