You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
						
							 | 
							- #!/bin/sh
 - 
 - # PROVIDE: peertube
 - # REQUIRE: LOGIN postgresql nginx redis
 - # KEYWORD: shutdown
 - 
 - PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
 - 
 - . /etc/rc.subr
 - 
 - desc="Peertube daemon"
 - name=peertube
 - rcvar=peertube_enable
 - 
 - load_rc_config $name
 - 
 - : ${peertube_enable:=NO}
 - 
 - sig_stop=-KILL
 - peertube_chdir="/var/www/peertube/peertube-latest"
 - peertube_env="HOME=/var/www/peertube \
 - NODE_ENV=production \
 - NODE_CONFIG_DIR=/var/www/peertube/config \
 - USER=peertube"
 - peertube_user=peertube
 - 
 - command="/usr/local/bin/node"
 - command_args="dist/server >> /var/log/peertube/${name}.log 2>&1 &"
 - 
 - run_rc_command "$1"
 
 
  |