diff --git a/systemd/copy_keyfile.service b/systemd/copy_keyfile.service new file mode 100644 index 0000000..a1ffd90 --- /dev/null +++ b/systemd/copy_keyfile.service @@ -0,0 +1,16 @@ +# /etc/systemd/system/copy_keyfile.service +[Unit] +Description=Copy Encryption Key +After=network.target + +[Service] +Type=simple +User=root +Restart=on-failure +RestartSec=30 +TimeoutStartSec=120 +ExecStart=/usr/bin/bash -c "/usr/local/bin/copy_keyfile" + +[Install] +WantedBy=multi-user.target +