-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrootstream.service
More file actions
36 lines (30 loc) · 869 Bytes
/
rootstream.service
File metadata and controls
36 lines (30 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[Unit]
Description=RootStream Game Streaming Host
After=network.target graphical.target
[Service]
Type=simple
User=%i
Group=video
ExecStart=/usr/local/bin/rootstream host
Restart=on-failure
RestartSec=5s
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
# Allow access to DRM and uinput
DeviceAllow=/dev/dri/card0 rw
DeviceAllow=/dev/uinput rw
DeviceAllow=/dev/dri/renderD128 rw
# Capabilities
AmbientCapabilities=CAP_SYS_ADMIN
CapabilityBoundingSet=CAP_SYS_ADMIN
[Install]
WantedBy=multi-user.target
# Installation instructions:
# 1. Copy to /etc/systemd/system/rootstream@.service
# 2. Enable for your user: sudo systemctl enable rootstream@$USER
# 3. Start: sudo systemctl start rootstream@$USER
# 4. Check status: sudo systemctl status rootstream@$USER
# 5. View logs: sudo journalctl -u rootstream@$USER -f