Skip to content
Extraits de code Groupes Projets
hedgedocs.service 555 octets
Newer Older
# {{ ansible_managed }}

nono's avatar
nono a validé
[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 a validé
# This is relative to the home of the hedgedocs user : https://www.freedesktop.org/software/systemd/man/systemd.exec.html
WorkingDirectory=hedgedoc/
ExecStart=npm start --production
nono's avatar
nono a validé
Restart=always
PrivateTmp=true
PrivateDevices=true

[Install]
WantedBy=multi-user.target