Install tmpfiles conf files to create /run/nut directory during boot
This commit is contained in:
		
							parent
							
								
									47044fe3b0
								
							
						
					
					
						commit
						11b7980da6
					
				
					 4 changed files with 10 additions and 1 deletions
				
			
		
							
								
								
									
										6
									
								
								debian/rules
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								debian/rules
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -80,6 +80,12 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
 | 
			
		|||
	install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-server.service \
 | 
			
		||||
		$(CURDIR)/debian/nut-server/lib/systemd/system/nut-server.service
 | 
			
		||||
 | 
			
		||||
	# Install tmpfiles config file to create /run/nut directory
 | 
			
		||||
	install -m 644 -D $(CURDIR)/debian/nut-client.tmpfiles \
 | 
			
		||||
		$(CURDIR)/debian/nut-client/usr/lib/tmpfiles.d/nut-client.conf
 | 
			
		||||
	install -m 644 -D $(CURDIR)/debian/nut-server.tmpfiles \
 | 
			
		||||
		$(CURDIR)/debian/nut-server/usr/lib/tmpfiles.d/nut-server.conf
 | 
			
		||||
 | 
			
		||||
	# This is needed to avoid services to be started twice (systemd and LSB)
 | 
			
		||||
	mkdir -p $(CURDIR)/debian/nut-client/etc/systemd/system/
 | 
			
		||||
	ln -s /lib/systemd/system/nut-monitor.service \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue