blob: 4cbb18c2b1cb920fcb01adbc54129b679b21ae84 (
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
|
[Unit]
Description=Markdown note taking application
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/silverbullet
StateDirectory=silverbullet
CacheDirectory=silverbullet
Environment=DOCS=/var/lib/silverbullet
Environment=DENO_DIR=/var/cache/silverbullet
EnvironmentFile=/etc/default/silverbullet
Restart=on-failure
RestartSec=5
TimeoutStopSec=10
# isolation
DynamicUser=yes
LockPersonality=yes
NoNewPrivileges=yes
PrivateMounts=yes
PrivateTmp=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=no
ProtectKernelTunables=no
ProtectSystem=strict
RemoveIPC=yes
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
[Install]
WantedBy=multi-user.target
# vim: ft=systemd
|