verdaccio: Initial import
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
16
www-apps/verdaccio/files/verdaccio.confd
Normal file
16
www-apps/verdaccio/files/verdaccio.confd
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
# User and group to run under
|
||||
#VERDACCIO_USER=verdaccio
|
||||
#VERDACCIO_GROUP=verdaccio
|
||||
|
||||
# Additional options passed on startup
|
||||
#VERDACCIO_OPTS="--listen 127.0.0.1:4873"
|
||||
|
||||
# Location of storage and database files
|
||||
#VERDACCIO_DATA_DIR=/var/lib/verdaccio
|
||||
|
||||
# Configuration file to use
|
||||
#VERDACCIO_CONFIGFILE=/etc/verdaccio/config.yaml
|
||||
25
www-apps/verdaccio/files/verdaccio.initd
Normal file
25
www-apps/verdaccio/files/verdaccio.initd
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
: ${VERDACCIO_CONFIGFILE_DIR:=/etc/verdaccio}
|
||||
: ${VERDACCIO_CONFIGFILE:=${VERDACCIO_CONFIGFILE_DIR}/config.yaml}
|
||||
: ${VERDACCIO_DATA_DIR:=/var/lib/${RC_SVCNAME}}
|
||||
: ${VERDACCIO_PIDFILE_DIR:=/run}
|
||||
: ${VERDACCIO_PIDFILE:=${VERDACCIO_PIDFILE_DIR}/${RC_SVCNAME}.pid}
|
||||
: ${VERDACCIO_LOGFILE_DIR:=/var/log/verdaccio}
|
||||
: ${VERDACCIO_LOGFILE:=${VERDACCIO_LOGFILE_DIR}/${RC_SVCNAME}.log}
|
||||
|
||||
: ${VERDACCIO_GROUP:=verdaccio}
|
||||
: ${VERDACCIO_USER:=verdaccio}
|
||||
|
||||
directory="${VERDACCIO_DATA_DIR}"
|
||||
pidfile="${VERDACCIO_PIDFILE}"
|
||||
required_files="${VERDACCIO_CONFIGFILE}"
|
||||
required_dirs="${VERDACCIO_PIDFILE_DIR} ${VERDACCIO_DATA_DIR} ${VERDACCIO_LOGFILE_DIR}"
|
||||
|
||||
command="/usr/sbin/verdaccio"
|
||||
command_args="--config ${VERDACCIO_CONFIGFILE} ${VERDACCIO_OPTS}"
|
||||
command_user="${VERDACCIO_USER}:${VERDACCIO_GROUP}"
|
||||
command_background="true"
|
||||
|
||||
output_log="${VERDACCIO_LOGFILE}"
|
||||
error_log="${VERDACCIO_LOGFILE}"
|
||||
Reference in New Issue
Block a user