summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/taskmanager/etc
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/taskmanager/etc')
-rw-r--r--satellit_installer/static_files/taskmanager/etc/sudoers.d/taskmanager12
l---------satellit_installer/static_files/taskmanager/etc/systemd/system/multi-user.target.wants/taskmanager.service1
-rw-r--r--satellit_installer/static_files/taskmanager/etc/systemd/system/taskmanager.service17
3 files changed, 30 insertions, 0 deletions
diff --git a/satellit_installer/static_files/taskmanager/etc/sudoers.d/taskmanager b/satellit_installer/static_files/taskmanager/etc/sudoers.d/taskmanager
new file mode 100644
index 0000000..b34bf9f
--- /dev/null
+++ b/satellit_installer/static_files/taskmanager/etc/sudoers.d/taskmanager
@@ -0,0 +1,12 @@
+# Sudoers configuration for user 'taskmanager'
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/ldadp-launcher
+taskmanager ALL=(root) NOPASSWD: /sbin/reboot
+taskmanager ALL=(root) NOPASSWD: /bin/netstat
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/systemctl
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/mount-store
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/system-backup
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/system-restore
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/install-https
+taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/ldadp-setperms
+ALL ALL=(www-data) NOPASSWD: /usr/local/bin/slxlog
+Defaults env_keep += "TM_*"
diff --git a/satellit_installer/static_files/taskmanager/etc/systemd/system/multi-user.target.wants/taskmanager.service b/satellit_installer/static_files/taskmanager/etc/systemd/system/multi-user.target.wants/taskmanager.service
new file mode 120000
index 0000000..141a3f2
--- /dev/null
+++ b/satellit_installer/static_files/taskmanager/etc/systemd/system/multi-user.target.wants/taskmanager.service
@@ -0,0 +1 @@
+../taskmanager.service \ No newline at end of file
diff --git a/satellit_installer/static_files/taskmanager/etc/systemd/system/taskmanager.service b/satellit_installer/static_files/taskmanager/etc/systemd/system/taskmanager.service
new file mode 100644
index 0000000..97662cb
--- /dev/null
+++ b/satellit_installer/static_files/taskmanager/etc/systemd/system/taskmanager.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=bwLehrpool Taskmanager
+
+[Service]
+User=taskmanager
+Group=taskmanager
+WorkingDirectory=/opt/taskmanager/
+ExecStart=/opt/taskmanager/taskmanager.sh
+Restart=always
+RestartSec=5
+SyslogIdentifier=taskmanager
+StandardOutput=syslog
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target
+