summarylogtreecommitdiffstats
path: root/hedgedoc2-backend.service
blob: 286d989065c90ccd6fbb6e830207e3ff3bdd6269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Hedgedoc real-time collaborative markdown editor (backend)
After=network.target

[Service]
Type=exec

Environment=NODE_ENV=production
EnvironmentFile=/etc/hedgedoc2/settings.env

Restart=always
RestartSec=2s

User=hedgedoc2
Group=hedgedoc2

WorkingDirectory=/usr/share/webapps/hedgedoc2/backend
ExecStart=/usr/bin/node dist/main.js

[Install]
WantedBy=multi-user.target