mirror of
https://github.com/YunoHost-Apps/hedgedoc_ynh.git
synced 2024-09-03 19:25:52 +02:00
20 lines
426 B
SYSTEMD
20 lines
426 B
SYSTEMD
|
[Unit]
|
||
|
Description=HedgeDoc: collaborative Markdown notes
|
||
|
Documentation=https://github.com/hedgedoc/hedgedoc
|
||
|
After=network.target postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
WorkingDirectory=__FINALPATH__
|
||
|
Environment="PATH=__ENV_PATH__"
|
||
|
Environment="NODE_ENV=production"
|
||
|
ExecStart=__YNH_NPM__ start --production
|
||
|
Restart=always
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|