mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			442 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			442 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/sbin/openrc-run
 | |
| 
 | |
| description="Jackal is a server for jackal/XMPP written in Go."
 | |
| 
 | |
| : ${cfgfile:="/etc/jackal/config.yml"}
 | |
| 
 | |
| command="/usr/bin/jackal"
 | |
| command_args="--config $cfgfile $command_args"
 | |
| command_background=yes
 | |
| pidfile="/run/$RC_SVCNAME.pid"
 | |
| directory="/var/lib/jackal"
 | |
| error_logger="logger -t jackal -p daemon.info >/dev/null 2>&1"
 | |
| 
 | |
| required_files="$cfgfile"
 | |
| 
 | |
| start_pre() {
 | |
| 	checkpath -d -m 0750 -o jackal:jackal /var/log/jackal
 | |
| }
 |