about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--etc/archive-pubmed.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/archive-pubmed.service b/etc/archive-pubmed.service
new file mode 100644
index 0000000..ba5b293
--- /dev/null
+++ b/etc/archive-pubmed.service
@@ -0,0 +1,15 @@
+# Example of a systemd service to update the PubMed archive (with indexing)
+[Unit]
+Description=Download PubMed Archives
+After=network-online.target
+Wants=network-online.target
+AssertPathExists=/export/PubMed
+
+[Service]
+ExecStart=/usr/local/guix-profiles/genecup/bin/index-pubmed
+Environment="EDIRECT_PUBMED_MASTER=/export/PubMed" "PERL_LWP_SSL_CA_FILE=/etc/ssl/certs/ca-certificates.crt" "PATH=/usr/local/guix-profiles/ratspub/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin"
+User=hchen
+
+[Install]
+WantedBy=multi-user.target
+