LoginSignup
1
1

More than 5 years have passed since last update.

CloudStackでインスタンス作成時に自動パス systemdの件

Last updated at Posted at 2014-07-31

ユーザー会で使用したスライドにコードが収まらなかったから
Qiitaに上げてたんだけど、ベタ書きのまま放置は酷いと思うので手直し。

CentOS 7ではsystemdが導入されているので、サービスの管理が従来CentOSと大きく変わっております。
詳しい内容は解説されているサイト拝見して頂くとして、パス管理で使用する記述内容を紹介します。

cloud-set-client-password.service
# vim /etc/systemd/system/cloud-set-client-password.service
[Unit]
Description=CloudStack Password Modification Script
Requires=NetworkManager-wait-online.service
After=NetworkManager-wait-online.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/cloud-set-guest-password
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1