aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netbox/netbox.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-01-04 15:23:35 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-01-04 15:25:32 +0000
commitcd5dd02c13cbdb98e682c16184c4692086c12ffc (patch)
treee0f8c8ac7f3ea704d259e894542286e4179ceafe /testing/netbox/netbox.initd
parent86152549db024b35fe69353aa1da1cac8ea54558 (diff)
downloadaports-cd5dd02c13cbdb98e682c16184c4692086c12ffc.tar.bz2
aports-cd5dd02c13cbdb98e682c16184c4692086c12ffc.tar.xz
testing/netbox: new aport
IP address management (IPAM) and data center infrastructure management (DCIM) tool
Diffstat (limited to 'testing/netbox/netbox.initd')
-rw-r--r--testing/netbox/netbox.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/netbox/netbox.initd b/testing/netbox/netbox.initd
new file mode 100644
index 0000000000..6b135dbb08
--- /dev/null
+++ b/testing/netbox/netbox.initd
@@ -0,0 +1,21 @@
+#!/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
+}
+