Skip to content

Commit d93c245

Browse files
authored
systemd dependency on db (#3973)
1 parent 2e3390f commit d93c245

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

packaging/systemd/cloudstack-agent.service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
# Do not modify this file as your changes will be lost in the next CSM update.
19+
# If you need to add specific dependencies to this service unit do it in the
20+
# /etc/systemd/system/cloudstack-management.service.d/ directory
21+
1822
[Unit]
1923
Description=CloudStack Agent
2024
Documentation=http://www.cloudstack.org/

packaging/systemd/cloudstack-management.service

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@
1616
# under the License.
1717

1818
# Systemd unit file for CloudStack Management server
19+
# Do not modify this file as your changes will be lost in the next CSM update.
20+
# If you need to add specific dependencies to this service unit do it in the
21+
# /etc/systemd/system/cloudstack-management.service.d/ directory
22+
# If you know that either mysql or mariadb is running on this system is a good idea to
23+
# add a Requires dependency there. Check systemd documentation for details
1924

2025
[Unit]
2126
Description=CloudStack Management Server
22-
After=syslog.target network.target
27+
After=syslog.target network.target mariadb.service mysqld.service mysql.service
28+
Wants=mariadb.service mysqld.service mysql.service
2329

2430
[Service]
2531
UMask=0022

packaging/systemd/cloudstack-usage.service

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
# Systemd unit file for CloudStack Management server
19+
# Do not modify this file as your changes will be lost in the next CSM update.
20+
# If you need to add specific dependencies to this service unit do it in the
21+
# /etc/systemd/system/cloudstack-management.service.d/ directory
22+
# If you know that either mysql or mariadb is running on this system is a good idea to
23+
# add a Requires dependency there. Check systemd documentation for details
24+
1825
[Unit]
1926
Description=CloudStack Usage Server
2027
Documentation=http://www.cloudstack.org/
21-
Wants=network.target network-online.target
22-
After=network.target network-online.target
28+
Wants=network.target network-online.target mariadb.service mysqld.service mysql.service
29+
After=network.target network-online.target mariadb.service mysqld.service mysql.service
2330

2431
[Service]
2532
Type=simple

0 commit comments

Comments
 (0)