Kumi
8eebfe4c44
Adjusted the RestartSec value from 86400s to 2s in service files to ensure rapid recovery on failure. Removed redundant LimitNOFILE directive as it was unnecessary.
24 lines
534 B
Desktop File
24 lines
534 B
Desktop File
[Unit]
|
|
Description=Transfer.coffee
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# Replace this with the user you want to run as
|
|
User=transfercoffee
|
|
Group=transfercoffee
|
|
|
|
# Replace /opt/transfer.coffee with where you cloned the repo to
|
|
WorkingDirectory=/opt/transfer.coffee
|
|
ExecStart=/usr/bin/npm run start
|
|
|
|
# Create a .env file in the root of the project with the environment variables (see README.md)
|
|
EnvironmentFile = /opt/transfer.coffee/.env
|
|
|
|
Restart=always
|
|
RestartSec=2s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|