diff --git a/man/systemd-creds.xml b/man/systemd-creds.xml
index f2dff10ff1..d48f667b8b 100644
--- a/man/systemd-creds.xml
+++ b/man/systemd-creds.xml
@@ -475,7 +475,7 @@ SetCredentialEncrypted=mysql-password: \
xyz.service:
# mkdir -p /etc/systemd/system/xyz.service.d
-# systemd-ask-password -n | systemd-creds encrypt --name=mysql-password -p - - >/etc/systemd/system/xyz.service.d/50-password.conf
+# systemd-ask-password -n | ( echo "[Service]" && systemd-creds encrypt --name=mysql-password -p - - ) >/etc/systemd/system/xyz.service.d/50-password.conf
# systemctl daemon-reload
# systemctl restart xyz.service