mirror of
https://github.com/systemd/systemd
synced 2024-07-21 02:05:05 +00:00
parent
bb4791ec85
commit
2e290d55fd
|
@ -475,7 +475,7 @@ SetCredentialEncrypted=mysql-password: \
|
|||
<filename>xyz.service</filename>:</para>
|
||||
|
||||
<programlisting># 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</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue