hedgedocs.service 571 Bytes
Newer Older
nono's avatar
nono committed
1
2
# {{ ansible_managed }}

nono's avatar
nono committed
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=HedgeDocs collaborative markdown notes
Documentation=https://github.com/hedgedoc/hedgedoc/
After=network.target
After=postgresql.service


[Service]
Type=exec
RestartSec=2s
User=hedgedocs
Group=www-data
# the location you cloned CodiMD to.
nono's avatar
nono committed
16
# This is relative to the home of the hedgedocs user : https://www.freedesktop.org/software/systemd/man/systemd.exec.html
nono's avatar
nono committed
17
WorkingDirectory=/home/hedgedocs/hedgedoc/
nono's avatar
nono committed
18
ExecStart=npm start --production
nono's avatar
nono committed
19
20
21
22
23
24
Restart=always
PrivateTmp=true
PrivateDevices=true

[Install]
WantedBy=multi-user.target