bundles/systemd-swap/metadata.py: swapfile-prepare.service and swapfile.swap are part of each other (one restarts the other)
This commit is contained in:
		
							parent
							
								
									22d92af61b
								
							
						
					
					
						commit
						426f37f098
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3,6 +3,11 @@ defaults = {
 | 
			
		|||
    'systemd': {
 | 
			
		||||
        'units': {
 | 
			
		||||
            'swapfile.swap': {
 | 
			
		||||
                'Unit': {
 | 
			
		||||
                    'PartOf': {
 | 
			
		||||
                        'swapfile-prepare.service', # restart together
 | 
			
		||||
                    },
 | 
			
		||||
                },
 | 
			
		||||
                'Swap': {
 | 
			
		||||
                    'What': '/swapfile',
 | 
			
		||||
                },
 | 
			
		||||
| 
						 | 
				
			
			@ -31,6 +36,9 @@ def unit(metadata):
 | 
			
		|||
                        'Before': {
 | 
			
		||||
                            'swapfile.swap',
 | 
			
		||||
                        },
 | 
			
		||||
                        'PartOf': {
 | 
			
		||||
                            'swapfile.swap', # restart together
 | 
			
		||||
                        },
 | 
			
		||||
                    },
 | 
			
		||||
                    'Service': {
 | 
			
		||||
                        'Type': 'oneshot',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue