blob: a7af30300b751f50ee6869e1aa8cf43d759e1f60 (
plain)
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
43
44
45
46
47
48
49
50
51
|
[Unit]
Description=Iceshrimp daemon
Requires=postgresql.service redis.service
After=postgresql.service redis.service
[Service]
Type=simple
Restart=on-failure
User=iceshrimp
Group=iceshrimp
WorkingDirectory=/usr/share/iceshrimp
Environment="NODE_ENV=production"
SyslogIdentifier=iceshrimp
ExecStart=/usr/bin/corepack yarn migrateandstart
ReadOnlyPaths=/usr/share/iceshrimp
ReadOnlyPaths=/etc/iceshrimp/default.yml
ReadWritePaths=/var/lib/iceshrimp/files
ReadWritePaths=/var/lib/iceshrimp/.cache
NoExecPaths=/var/lib/iceshrimp/.cache
NoExecPaths=/var/lib/iceshrimp/files
RestrictSUIDSGID=true
RestrictNamespaces=true
PrivateTmp=true
PrivateDevices=true
PrivateUsers=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectSystem=strict
ProtectHome=true
ProtectProc=invisible
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
LockPersonality=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
|