summaryrefslogtreecommitdiffstats
path: root/remote/modules/hardware-stats/data/etc/systemd/system
diff options
context:
space:
mode:
authorSimon Rettberg2015-12-04 13:11:09 +0100
committerSimon Rettberg2015-12-04 13:11:09 +0100
commit60c39caafca9a8cea1ee59ff13c492366099802b (patch)
tree73be65cd1301244fb2fc1d92bd579b07578b7023 /remote/modules/hardware-stats/data/etc/systemd/system
parent[pam] Add .d directory support to pam_script_ses_open/close (diff)
downloadtm-scripts-60c39caafca9a8cea1ee59ff13c492366099802b.tar.gz
tm-scripts-60c39caafca9a8cea1ee59ff13c492366099802b.tar.xz
tm-scripts-60c39caafca9a8cea1ee59ff13c492366099802b.zip
[hardware-stats] New module
Diffstat (limited to 'remote/modules/hardware-stats/data/etc/systemd/system')
-rw-r--r--remote/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service11
l---------remote/modules/hardware-stats/data/etc/systemd/system/multi-user.target.wants/hardware-stats.service1
2 files changed, 12 insertions, 0 deletions
diff --git a/remote/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service b/remote/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
new file mode 100644
index 00000000..c28e75a5
--- /dev/null
+++ b/remote/modules/hardware-stats/data/etc/systemd/system/hardware-stats.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Gather statistics about this machine and send to boot server
+DefaultDependencies=no
+After=tmp.target multi-user.target
+Wants=tmp.target
+
+[Service]
+Type=oneshot
+ExecStart=/opt/openslx/scripts/systemd-hardware_stats
+RemainAfterExit=yes
+
diff --git a/remote/modules/hardware-stats/data/etc/systemd/system/multi-user.target.wants/hardware-stats.service b/remote/modules/hardware-stats/data/etc/systemd/system/multi-user.target.wants/hardware-stats.service
new file mode 120000
index 00000000..e463586d
--- /dev/null
+++ b/remote/modules/hardware-stats/data/etc/systemd/system/multi-user.target.wants/hardware-stats.service
@@ -0,0 +1 @@
+../hardware-stats.service \ No newline at end of file