Table of Contents

ArchMap

  • Arch Wiki: ArchMap, ArchMap/List
  • Package: archmap (local)
  • systemd: archmap.service, archmap.timer
  • User and group: archmap:git
  • Config: /etc/archmap.conf
  • Path: /srv/http/archwomen.org/media/archmap

Installation

  • Grab the PKGBUILD, archmap.install, and whatever other files from upstream.
  • Install deps from AUR, run makepkg -s, and install.
  • Create archmap.conf (see below).
  • Create user, useradd –system -g git -d / -s /bin/false archmap.
  • Create custom systemd service and timer (see below).
  • Create archmap dir in media.
  • Enable and start archmap.timer.

Files

Copies of files are also in webserver-system-backup.

Create config file in /etc/archmap.conf.

archmap.conf
[files]
# Define where to get the wiki list from.
# If a file path is supplied to 'default_file', it will be used instead of the URL
url = https://wiki.archlinux.org/index.php/ArchMap/List
file =

# The location to save the list of users and the GIS files,
# use 'no' to disable output.
users  = /srv/http/archwomen.org/media/archmap/archmap-users.txt
geojson = /srv/http/archwomen.org/media/archmap/archmap.geojson
kml = /srv/http/archwomen.org/media/archmap/archmap.kml
csv = /srv/http/archwomen.org/media/archmap/archmap.csv

[extras]
# Define the verbosity level:
# '0' will disable the message printing,
# '1' will enable it.
verbosity = 1

Custom service file in /etc/systemd/system.

archmap.service
[Unit]
Description=ArchMap GeoJSON/KML generator

[Service]
Type=simple
ExecStart=/usr/bin/archmap
User=archmap
Group=git

# Don't duplicate logs, messages are already passed directly to systemd
StandardOutput=null
StandardError=null

Custom timer file in /etc/systemd/system.

archmap.timer
[Unit]
Description=ArchMap GeoJSON/KML generator - quad-daily timer

[Timer]
# Run every 6 hours starting from 00:00 UTC
OnCalendar=*-*-* 00,06,12,18:00:00 UTC

Persistent=true
Unit=archmap.service

[Install]
WantedBy=multi-user.target

aw-tech/archmap.txt · Last modified: 2017/11/03 19:51 by alux