systemd dependency on db (#3973)

This commit is contained in:
dahn 2020-03-25 19:57:12 +01:00 committed by GitHub
parent 2e3390f06e
commit d93c2459a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View File

@ -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/

View File

@ -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

View File

@ -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