File tree 3 files changed +31
-1
lines changed
3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 5
5
it "every worker has a matching systemd target and service file" , :providers_common => true do
6
6
expected_units = ( Vmdb ::Plugins . systemd_units + Rails . root . join ( "systemd" ) . glob ( "*.*" ) ) . map ( &:basename ) . map ( &:to_s )
7
7
8
- expected_units . delete ( " manageiq.target" )
8
+ expected_units -= %w[ manageiq-db-ready.service evmserverd.service manageiq.target ]
9
9
10
10
found_units = MiqWorkerType . worker_classes . flat_map do |worker_class |
11
11
service_base_name = worker_class . service_base_name
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =EVM server daemon
3
+ After =memcached.service manageiq-db-ready.service
4
+ Wants =memcached.service manageiq-db-ready.service
5
+
6
+ [Service]
7
+ WorkingDirectory =/var/www/miq/vmdb
8
+ EnvironmentFile =/etc/default/manageiq*.properties
9
+ Environment =EVMSERVER =true
10
+ ExecStart =/usr/bin/ruby lib/workers/bin/evm_server.rb
11
+ Group =manageiq
12
+ UMask =0002
13
+ Restart =on-failure
14
+
15
+ [Install]
16
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =ManageIQ DB Ready
3
+ After =network.target
4
+ Before =evmserverd.service
5
+ ConditionPathExists =/var/www/miq/vmdb/config/database.yml
6
+
7
+ [Service]
8
+ ExecStart =/usr/bin/manageiq-db-ready
9
+ EnvironmentFile =/etc/default/manageiq*.properties
10
+ TimeoutStartSec =infinity
11
+ Type =oneshot
12
+
13
+ [Install]
14
+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments