mirror of
https://github.com/correl/melpa.git
synced 2024-12-25 11:11:17 +00:00
Update configuration files.
This commit is contained in:
parent
dda65bdb64
commit
6b571a8077
9 changed files with 75 additions and 0 deletions
3
cfg/etc/runit/melpa/run
Executable file
3
cfg/etc/runit/melpa/run
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
exec 2>&1
|
||||||
|
exec chpst -u melpa runsvdir /home/melpa/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|
23
cfg/home/service/builder/run
Executable file
23
cfg/home/service/builder/run
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
|
||||||
|
export HOME=/home/melpa
|
||||||
|
cd ${HOME}/melpa
|
||||||
|
|
||||||
|
source $HOME/melpa/scripts/env
|
||||||
|
|
||||||
|
## git pull
|
||||||
|
cd ${MELPA_HOME}
|
||||||
|
git fetch origin
|
||||||
|
git reset --hard origin/${MELPA_BRANCH}
|
||||||
|
git pull origin ${MELPA_BRANCH}
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Build all the packages.
|
||||||
|
scripts/parallel_build_all
|
||||||
|
|
||||||
|
echo '{"completed":' `date "+%s"` '}' > /home/melpa/www/build-status.json
|
||||||
|
|
||||||
|
# Sleep for an hour before rebuilding.
|
||||||
|
sleep 1h
|
4
cfg/home/service/nginx/run
Executable file
4
cfg/home/service/nginx/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
exec /usr/sbin/nginx -g 'error_log /dev/null crit;' -c ~/etc/nginx
|
||||||
|
|
8
cfg/home/service/process_log/run
Executable file
8
cfg/home/service/process_log/run
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
cd /home/melpa/melpa
|
||||||
|
/usr/bin/python /home/melpa/melpa/scripts/process_log.py
|
||||||
|
|
||||||
|
/usr/sbin/logrotate -s /home/melpa/var/lib/logrotate/status /home/melpa/etc/logrotate
|
||||||
|
|
||||||
|
sleep 6h
|
24
cfg/home/service/reporter/run
Executable file
24
cfg/home/service/reporter/run
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
# Service for reporting missing and old packages.
|
||||||
|
|
||||||
|
export HOME=/home/melpa
|
||||||
|
|
||||||
|
BODY=`mktemp`
|
||||||
|
|
||||||
|
cd ${HOME}/melpa
|
||||||
|
|
||||||
|
echo "To: MP <dcurtis@milkbox.net>" > ${BODY}
|
||||||
|
echo "Subject: [MELPA] `date "+%Y%m%d %H:%M %z"`" >> ${BODY}
|
||||||
|
echo >> ${BODY}
|
||||||
|
echo "# Old Packages" >> ${BODY}
|
||||||
|
echo >> ${BODY}
|
||||||
|
scripts/expired >> ${BODY}
|
||||||
|
echo >> ${BODY}
|
||||||
|
echo "# Missing Packages" >> ${BODY}
|
||||||
|
echo >> ${BODY}
|
||||||
|
scripts/missing >> ${BODY}
|
||||||
|
|
||||||
|
/usr/sbin/sendmail -t < ${BODY}
|
||||||
|
|
||||||
|
sleep 12h
|
13
cfg/home/service/syncer/run
Executable file
13
cfg/home/service/syncer/run
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
export HOME=/home/melpa
|
||||||
|
cd ${HOME}/melpa
|
||||||
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
||||||
|
|
||||||
|
make cleanup
|
||||||
|
make json
|
||||||
|
make html
|
||||||
|
make sync
|
||||||
|
|
||||||
|
# Sync every 5 minutes.
|
||||||
|
sleep 5m
|
Loading…
Reference in a new issue