mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-11-04 02:11:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			487 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			487 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#!/sbin/openrc-run
 | 
						|
 | 
						|
INSTANCE=default
 | 
						|
[ "${RC_SVCNAME}" != "${RC_SVCNAME##*.}" ] && INSTANCE=${RC_SVCNAME##*.}
 | 
						|
command="/usr/bin/tarantoolctl"
 | 
						|
command_user="${TARANTOOL_USER:-tarantool}"
 | 
						|
command_args="start ${INSTANCE}"
 | 
						|
pidfile="/run/${INSTANCE}.pid"
 | 
						|
 | 
						|
depend() {
 | 
						|
        use logger dns
 | 
						|
        need net
 | 
						|
        after firewall
 | 
						|
}
 | 
						|
 | 
						|
start_pre() {
 | 
						|
	checkpath --owner ${TARANTOOL_USER:-tarantool}:${TARANTOOL_USER:-tarantool} \
 | 
						|
		--directory --mode 0775 /var/log/tarantool /var/run/tarantool
 | 
						|
}
 |