mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03: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…
x
Reference in New Issue
Block a user