mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-26 22:11:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			440 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			440 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #!/sbin/runscript
 | |
| 
 | |
| daemon=/usr/sbin/opensips
 | |
| pidfile=/var/run/opensips/opensips.pid
 | |
| 
 | |
| depend() {
 | |
| 	need net
 | |
| 	after firewall
 | |
| }
 | |
| 
 | |
| start() {
 | |
| 	ebegin "Starting OpenSIPS"
 | |
| 	start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \
 | |
| 		-- \
 | |
| 		-u ${OPENSIPS_USER:-opensips} \
 | |
| 		-g ${OPENSIPS_GROUP:-opensips} \
 | |
| 		-P $pidfile  
 | |
| 	eend $?
 | |
| }
 | |
| 
 | |
| stop() {
 | |
| 	ebegin "Stopping OpenSIPS"
 | |
| 	start-stop-daemon --stop --quiet --pidfile $pidfile
 | |
| 	eend $?
 | |
| }
 | |
| 
 |