]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai: update systemd unit files
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 15 Jul 2015 23:31:31 +0000 (16:31 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Wed, 15 Jul 2015 23:31:31 +0000 (16:31 -0700)
The current approach uses user instance of systemd, instead of running
under root's instance with a "User=" blurb. Also add a README file
indicating the purpose of these scripts and service files.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
email/systemd/README [new file with mode: 0644]
email/systemd/aiaiai-project-update.service
email/systemd/aiaiai-project-update.timer
email/systemd/aiaiai.service
email/systemd/send-mail-on-failure@.service

diff --git a/email/systemd/README b/email/systemd/README
new file mode 100644 (file)
index 0000000..a845cac
--- /dev/null
@@ -0,0 +1,24 @@
+1 Overview
+~~~~~~~~~~
+
+This folder contains a set of systemd user services intended for use with
+systemd's User instance service manager. It includes a service file for the
+aiaiai main process, as well as a timer and service for keeping remote
+repositories up to date.
+
+These services can be configured to run on systemd's root instance by using
+"User=aiaiai", assuming your host system is running as aiaiai.
+
+The send-mail-on-failure script and service are intended to email the system
+administrator when the services fail. You probably want to customize it for
+your own email address.
+
+1.1 aiaiai-project-update
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+aiaiai-project-update is a script which reads the configuration file for
+repository paths, and runs remote-update on them. This enables automatic update
+of the remote repositories in a local cache. This helps prevent needing to
+specify remote url as the repository to clone from, and can reduce delay when
+running several patch tests at once, since each can clone locally instead of
+from the remote server.
index 07356e7fd170ce8cefe2787a3768b71c63226588..d37771dfe9657bc46d01808b170f0283cc3eac52 100644 (file)
@@ -6,8 +6,7 @@ Description=Aiaiai Project Updater
 OnFailure=send-mail-on-failure@%n.service
 
 [Service]
-User=aiaiai
 ExecStart=/home/aiaiai/git/aiaiai/email/systemd/aiaiai-project-update -v /home/aiaiai/work/aiaiai.cfg
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=default.target
index b262facc3a3324a3e3478d431dafda1ee33611e7..955def3864c61448fad3fc0ef95e6695e9edf274 100644 (file)
@@ -12,4 +12,4 @@ OnUnitInactiveSec=1min
 Unit=aiaiai-project-update.service
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=default.target
index 939382af7838d004127c4e8e95c9185337184385..0b799f10feb3e06460a610ee2edf49de340542e0 100644 (file)
@@ -6,9 +6,8 @@ Description=Aiaiai Email Dispatcher
 OnFailure=send-mail-on-failure@%n.service
 
 [Service]
-User=aiaiai
 EnvironmentFile=/home/aiaiai/git/aiaiai/email/systemd/aiaiai.conf
 ExecStart=/home/aiaiai/git/aiaiai/email/aiaiai-email-dispatcher -v ${AIAIAI_QUEUE_DIR} ${AIAIAI_CONFIG_FILE}
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=default.target
index 8a707d136294676189f4d41f469284cba39d5914..703428680213b65820e13b4886c954fdf7ad6015 100644 (file)
@@ -5,6 +5,5 @@
 Description=Send mail on failure of %i
 
 [Service]
-User=aiaiai
 # You should customize the email address here
 ExecStart=/home/aiaiai/git/aiaiai/systemd/send-mail-on-failure.sh %i root@localhost