aboutsummaryrefslogblamecommitdiffstats
path: root/community/influxdb/influxdb.initd
blob: 15db4e0c5441988759681afd40ea5313612ea71e (plain) (tree)
1
2
3
4
5
6
7

                  
                            
                         
                               
                        
                                                 






                      
                                                                               
 
#!/sbin/openrc-run

pidfile=/run/$RC_SVCNAME.pid
command=/usr/sbin/influxd
command_args="${INFLUXDB_OPTS}"
command_background="yes"
command_user="${command_user:-influxdb:influxdb}"

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath -d -o "$command_user" -m755 "${data_path:-/var/lib/influxdb}"
}