saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
		
							parent
							
								
									21bdf79af8
								
							
						
					
					
						commit
						2104581d1a
					
				
							
								
								
									
										31
									
								
								init.d/._cfg0002_tox-dht-daemon
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										31
									
								
								init.d/._cfg0002_tox-dht-daemon
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,31 @@
 | 
			
		||||
#!/sbin/runscript
 | 
			
		||||
 | 
			
		||||
PIDDIR=/run/tox-bootstrapd
 | 
			
		||||
PIDFILE="${PIDDIR}"/tox-bootstrap.pid
 | 
			
		||||
 | 
			
		||||
depend() {
 | 
			
		||||
	need net
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
start() {
 | 
			
		||||
	ebegin "Starting tox-dht-bootstrap daemon"
 | 
			
		||||
 | 
			
		||||
	[ -d "${PIDDIR}" ] || mkdir -p "${PIDDIR}"
 | 
			
		||||
	chown -R ${TOX_USER}:${TOX_GROUP} "${PIDDIR}"
 | 
			
		||||
 | 
			
		||||
	start-stop-daemon --start \
 | 
			
		||||
		--pidfile "${PIDFILE}" \
 | 
			
		||||
		--user=${TOX_USER} --group=${TOX_GROUP} \
 | 
			
		||||
		--exec /usr/bin/tox-bootstrapd -- /etc/tox-bootstrapd.conf
 | 
			
		||||
 | 
			
		||||
	eend $?
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
stop() {
 | 
			
		||||
	ebegin "Stopping tox-dht-bootstrap daemon"
 | 
			
		||||
 | 
			
		||||
	start-stop-daemon --stop \
 | 
			
		||||
		--pidfile "${PIDFILE}"
 | 
			
		||||
 | 
			
		||||
	eend $?
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user