1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/testing/netbox/netbox.initd
Leonardo Arena cd5dd02c13 testing/netbox: new aport
IP address management (IPAM) and data center infrastructure management (DCIM) tool
2018-01-04 15:25:32 +00:00

21 lines
493 B
Text

#!/sbin/openrc-run
_port=8080
_bind=0.0.0.0
_basedir=/usr/share/webapps/netbox
_logfile="/var/log/${RC_SVCNAME}"
pidfile="/run/netbox/${RC_SVCNAME}.pid"
command=/usr/bin/gunicorn
command_args="--daemon \
--pid $pidfile \
--log-file $_logfile \
--log-level info \
-c $_basedir/gunicorn_config.py netbox.wsgi"
command_user="netbox"
command_group="netbox"
start_pre() {
checkpath --directory /run/${RC_SVCNAME} /var/log/${RC_SVCNAME} \
--owner $command_user:$command_group --mode 755
}