- Q When an EventEmitter instance faces any error, it emits an 'error' event. When new listener is added, 'newListener' event is fired and when a listener is removed, 'removeListener' event is fired. EventEmitter provides multiple properties like on and emit. on property is used to bind a function with the event and emit is used to fire an event.
- Q What is a semi conductor?
- Q 78 percent of the atmosphere is?
- Q What is different between web.config and machine.config and where it will be ?
- Q What are the different kinds of reports in Salesforce?
- Q Write the code for select second last div element?
- Q Who was the Prime Minister of Britain during the first and second Round Table conferences?
- Q On a scale of 1-10 how devilsh would you say you are?
- Q What is inflation and deflation
- Q What is the function of a boiler?
- Q Who did Ekalavya consider as his Guru?
Answers
Now we can apply the workaround to restart the Minion in reliable way. The following example works on both UNIX-like and Windows operating systems:
Restart Salt Minion:
cmd.run:{%- if grains['kernel'] == 'Windows' %} - name: 'C:saltsalt-call.bat --local service.restart salt-minion'{%- else %} - name: 'salt-call --local service.restart salt-minion'{%- endif %} - bg: True - onchanges: - pkg: Upgrade Salt Minion
However, it requires more advanced tricks to upgrade from legacy version of Salt (before 2016.3.0), where executing commands in the background is not supported:
Restart Salt Minion:
cmd.run:{%- if grains['kernel'] == 'Windows' %} - name: 'start powershell "Restart-Service -Name salt-minion"'{%- else %} # fork and disown the process - name: |- exec 0>&- # close stdin exec 1>&- # close stdout exec 2>&- # close stderr nohup salt-call --local service.restart salt-minion &{%- endif %} Your Comment
Restart Salt Minion:
cmd.run:{%- if grains['kernel'] == 'Windows' %} - name: 'C:saltsalt-call.bat --local service.restart salt-minion'{%- else %} - name: 'salt-call --local service.restart salt-minion'{%- endif %} - bg: True - onchanges: - pkg: Upgrade Salt Minion
However, it requires more advanced tricks to upgrade from legacy version of Salt (before 2016.3.0), where executing commands in the background is not supported:
Restart Salt Minion:
cmd.run:{%- if grains['kernel'] == 'Windows' %} - name: 'start powershell "Restart-Service -Name salt-minion"'{%- else %} # fork and disown the process - name: |- exec 0>&- # close stdin exec 1>&- # close stdout exec 2>&- # close stderr nohup salt-call --local service.restart salt-minion &{%- endif %} Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More States,Software Questions..
Why is pawan kalyan so popular in telugu states ?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 0 )
- Tags: States,
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Which oracle package is used to manage the oracle lock management services?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is marker interface?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,