ansible/roles/hackmd/templates/hackmd.service.j2

15 lines
253 B
Django/Jinja

[Unit]
Description=HackMD
After=network.target
[Service]
Environment=NODE_ENV=production
WorkingDirectory=/opt/hedgedoc-{{ hackmd_version }}
Type=simple
User=hackmd
ExecStart=/usr/bin/yarn start
Restart=on-failure
[Install]
WantedBy=multi-user.target