next set of updates
This commit is contained in:
		
							
								
								
									
										38
									
								
								configs/usr/local/etc/rc.d/cam_tag
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										38
									
								
								configs/usr/local/etc/rc.d/cam_tag
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,38 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
# https://diyit.org/license/
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# the two lines below are not just comments but required by rcorder; service -e
 | 
			
		||||
# PROVIDE: cam_tag
 | 
			
		||||
# REQUIRE: DAEMON
 | 
			
		||||
 | 
			
		||||
. /etc/rc.subr
 | 
			
		||||
 | 
			
		||||
: ${cam_tag_enable="NO"}
 | 
			
		||||
 | 
			
		||||
name=cam_tag
 | 
			
		||||
rcvar=${name}_enable
 | 
			
		||||
 | 
			
		||||
COMMAND="/root/FreeBSD/scripts/cam_tag.sh"
 | 
			
		||||
 | 
			
		||||
start_cmd="${name}_start"
 | 
			
		||||
restart_cmd="${name}_restart"
 | 
			
		||||
 | 
			
		||||
cam_tag_start()
 | 
			
		||||
{
 | 
			
		||||
    $COMMAND
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cam_tag_restart()
 | 
			
		||||
{
 | 
			
		||||
    $COMMAND
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
load_rc_config ${name}
 | 
			
		||||
run_rc_command "$1"
 | 
			
		||||
@ -1,3 +1,5 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
@ -6,8 +8,6 @@
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# the two lines below are not just comments but required by rcorder; service -e
 | 
			
		||||
# PROVIDE: gstat_exporter
 | 
			
		||||
# REQUIRE: NETWORKING DAEMON
 | 
			
		||||
@ -19,7 +19,7 @@
 | 
			
		||||
name=gstat_exporter
 | 
			
		||||
rcvar=${name}_enable
 | 
			
		||||
 | 
			
		||||
GSTATEXPORTER="nohup /usr/local/bin/python3.6 /root/FreeBSD/scripts/gstat_exporter.py"
 | 
			
		||||
GSTATEXPORTER="nohup /usr/local/bin/python3.7 /root/FreeBSD/scripts/gstat_exporter.py"
 | 
			
		||||
 | 
			
		||||
start_cmd="${name}_start"
 | 
			
		||||
stop_cmd="${name}_stop"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user