- Add direct device mounts (cdrom, dvd, sr0) to worker - Add SYS_ADMIN capability for udev access - Install isoinfo and udev in worker container - Add pyudev for device monitoring - Update udev rules with correct paths
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# systemd-Service für Rippy udev-Daemon
|
||||
# Diese Datei muss nach /etc/systemd/system/rippy-udev.service kopiert werden
|
||||
|
||||
[Unit]
|
||||
Description=Rippy Disc Detection Daemon
|
||||
After=dev-disc.device
|
||||
Requires=dev-disc.device
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /app/udev_daemon.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
WorkingDirectory=/app
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
# Environment
|
||||
Environment=REDIS_URL=redis://redis:6379/0
|
||||
Environment=PATH=/usr/local/bin:/usr/bin:/bin
|
||||
|
||||
# Security Hardening
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
PrivateTmp=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user