diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2020-01-10 08:58:24 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2020-01-10 08:58:24 +0000 |
commit | 79e6f22c6a2feb425c176bbc005abcd93071e43c (patch) | |
tree | 078816dab3218961787e7b59c2bba5f2735e15be /unmaintained/netbox/netbox.initd | |
parent | 8b2b291592ad58471e3deb95516219181d5e1ea7 (diff) | |
download | aports-79e6f22c6a2feb425c176bbc005abcd93071e43c.tar.bz2 aports-79e6f22c6a2feb425c176bbc005abcd93071e43c.tar.xz |
unmaintained/netbox: move from testing
Diffstat (limited to 'unmaintained/netbox/netbox.initd')
-rw-r--r-- | unmaintained/netbox/netbox.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/unmaintained/netbox/netbox.initd b/unmaintained/netbox/netbox.initd new file mode 100644 index 0000000000..6b135dbb08 --- /dev/null +++ b/unmaintained/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 +} + |