peertube-search-index_ynh/conf/systemd.service

21 lines
437 B
SYSTEMD
Raw Permalink Normal View History

2020-10-31 14:18:46 +01:00
[Unit]
Description=__APP__ search index daemon
After=network.target
[Service]
Type=simple
Environment=NODE_ENV=production
2024-02-28 14:06:46 +01:00
Environment="__YNH_NODE_LOAD_PATH__"
2024-02-28 13:33:07 +01:00
Environment=NODE_CONFIG_DIR=__INSTALL_DIR__/sources/config
2020-10-31 14:18:46 +01:00
User=__APP__
Group=__APP__
ExecStart=__YNH_NPM__ start
2024-02-28 13:33:07 +01:00
WorkingDirectory=__INSTALL_DIR__/sources/
2020-10-31 14:18:46 +01:00
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=__APP__
Restart=always
[Install]
WantedBy=multi-user.target