mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-25 21:46:55 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			407 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			407 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| # PROVIDE: netclient
 | |
| # REQUIRE: LOGIN DAEMON NETWORKING SERVERS FILESYSTEM
 | |
| # BEFORE:  
 | |
| # KEYWORD: shutdown
 | |
| 
 | |
| . /etc/rc.subr
 | |
| 
 | |
| name="netclient"
 | |
| rcvar=netclient_enable
 | |
| pidfile="/var/run/${name}.pid"
 | |
| command="/sbin/daemon"
 | |
| command_args="-c -f -P ${pidfile} -R 10 -t "Netclient" -u root -o /etc/netclient/netclient.log /etc/netclient/netclient checkin -n all"
 | |
| 
 | |
| load_rc_config $name
 | |
| run_rc_command "$1"
 |