mirror of
https://github.com/YunoHost-Apps/peertube-search-index_ynh.git
synced 2024-09-03 19:56:30 +02:00
20 lines
380 B
SYSTEMD
20 lines
380 B
SYSTEMD
|
[Unit]
|
||
|
Description=__APP__ search index daemon
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
Environment=NODE_ENV=production
|
||
|
Environment=NODE_CONFIG_DIR=__FINALPATH__/config
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
ExecStart=__YNH_NPM__ start
|
||
|
WorkingDirectory=__FINALPATH__/
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=__APP__
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|