add: copy of systemd unit files

This commit is contained in:
2026-10-13 23:57:55 -07:00
parent 1488b1002d
commit 86f003951f
2 changed files with 25 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# /etc/systemd/system/provision-homes.service
[Unit]
Description=Create home directories for lab-committee members
RequiresMountsFor=/mnt/stockroom
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/loading-program
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER
NoNewPrivileges=yes
ProtectSystem=strict
ReadWritePaths=/mnt/stockroom/homes
PrivateTmp=yes
+10
View File
@@ -0,0 +1,10 @@
# /etc/systemd/system/loading-program.timer
[Unit]
Description=Periodically provision lab-committee home directories
[Timer]
OnBootSec=2min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target