61af353559
Ampel / ampel (push) Failing after 30s
- 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
30 lines
597 B
Desktop File
30 lines
597 B
Desktop File
# 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
|