2020-08-17 17:29:58 +02:00
|
|
|
[Unit]
|
2023-08-18 11:36:01 +02:00
|
|
|
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__
|
2023-08-18 11:36:01 +02:00
|
|
|
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__"
|
2023-08-18 11:36:01 +02:00
|
|
|
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
|