-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmidiminder.service
More file actions
42 lines (38 loc) · 969 Bytes
/
midiminder.service
File metadata and controls
42 lines (38 loc) · 969 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
37
38
39
40
41
42
[Unit]
Description=MIDI connection daemon
Documentation=man:midiminder-daemon(8)
Documentation=man:midiminder-profile(5)
After=sound.target
Conflicts=amidiauto.service amidiminder.service
After=amidiauto.service amidiminder.service
[Service]
ExecStart=/usr/bin/midiminder daemon
ExecReload=/usr/bin/midiminder reset --keep --hard
EnvironmentFile=/etc/environment
RuntimeDirectory=midiminder
StateDirectory=midiminder
Restart=always
RestartSec=1
User=midiminder
Group=audio
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
RestrictNamespaces=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes
ProtectHostname=yes
ProtectKernelLogs=true
InaccessibleDirectories=/home
LimitNPROC=1
ProtectProc=invisible
[Install]
WantedBy=multi-user.target