summarylogtreecommitdiffstats
path: root/morty.service
blob: a98e626514450e5c27ac709157eda4b22c00767e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Morty instance
After=network.target

[Service]
Type=simple
User=nobody
PrivateTmp=true
PrivateDevices=true
# Prevent access to /home, /root, and /run/user
ProtectHome=true
# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full
ExecStart=/usr/bin/morty -listen 127.0.0.1:3000 -key ultrasecretkey
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target