diff --git a/packaging/systemd/cloudstack-agent.service b/packaging/systemd/cloudstack-agent.service index 72e99fe5384..e04d672beaa 100644 --- a/packaging/systemd/cloudstack-agent.service +++ b/packaging/systemd/cloudstack-agent.service @@ -15,6 +15,10 @@ # specific language governing permissions and limitations # under the License. +# Do not modify this file as your changes will be lost in the next CSM update. +# If you need to add specific dependencies to this service unit do it in the +# /etc/systemd/system/cloudstack-management.service.d/ directory + [Unit] Description=CloudStack Agent Documentation=http://www.cloudstack.org/ diff --git a/packaging/systemd/cloudstack-management.service b/packaging/systemd/cloudstack-management.service index 1f4ded3d613..b979f7f375a 100644 --- a/packaging/systemd/cloudstack-management.service +++ b/packaging/systemd/cloudstack-management.service @@ -16,10 +16,16 @@ # under the License. # Systemd unit file for CloudStack Management server +# Do not modify this file as your changes will be lost in the next CSM update. +# If you need to add specific dependencies to this service unit do it in the +# /etc/systemd/system/cloudstack-management.service.d/ directory +# If you know that either mysql or mariadb is running on this system is a good idea to +# add a Requires dependency there. Check systemd documentation for details [Unit] Description=CloudStack Management Server -After=syslog.target network.target +After=syslog.target network.target mariadb.service mysqld.service mysql.service +Wants=mariadb.service mysqld.service mysql.service [Service] UMask=0022 diff --git a/packaging/systemd/cloudstack-usage.service b/packaging/systemd/cloudstack-usage.service index 8d9dff27cde..c23814eaac6 100644 --- a/packaging/systemd/cloudstack-usage.service +++ b/packaging/systemd/cloudstack-usage.service @@ -15,11 +15,18 @@ # specific language governing permissions and limitations # under the License. +# Systemd unit file for CloudStack Management server +# Do not modify this file as your changes will be lost in the next CSM update. +# If you need to add specific dependencies to this service unit do it in the +# /etc/systemd/system/cloudstack-management.service.d/ directory +# If you know that either mysql or mariadb is running on this system is a good idea to +# add a Requires dependency there. Check systemd documentation for details + [Unit] Description=CloudStack Usage Server Documentation=http://www.cloudstack.org/ -Wants=network.target network-online.target -After=network.target network-online.target +Wants=network.target network-online.target mariadb.service mysqld.service mysql.service +After=network.target network-online.target mariadb.service mysqld.service mysql.service [Service] Type=simple