1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/droppy_ynh.git synced 2024-09-03 18:26:27 +02:00
droppy_ynh/conf/systemd.service

21 lines
478 B
SYSTEMD
Raw Permalink Normal View History

2020-08-17 17:29:58 +02:00
[Unit]
Description=Droppy: file storage server
2020-08-17 17:29:58 +02:00
After=network.target
[Service]
2022-06-02 00:45:50 +02:00
Type=simple
2020-08-17 17:29:58 +02:00
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
2020-08-17 17:29:58 +02:00
Environment="NODE_ENV=production"
2022-06-02 00:45:50 +02:00
Environment="__YNH_NODE_LOAD_PATH__"
ExecStart= __INSTALL_DIR__/droppy.js start -c __INSTALL_DIR__/config -f __DATA_DIR__/files
2020-08-17 17:29:58 +02:00
AmbientCapabilities=CAP_NET_BIND_SERVICE
Restart=always
SyslogIdentifier=__APP__
StandardOutput=journal
StandardError=journal
[Install]
2022-06-02 00:45:50 +02:00
WantedBy=multi-user.target