1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update systemd.service

This commit is contained in:
ericgaspar 2021-08-17 15:09:02 +02:00
parent 93d888f431
commit 3f1db856e1
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -9,8 +9,20 @@ Group=__APP__
WorkingDirectory=__FINALPATH__
Environment=PATH=__ENV_PATH__
Environment=NODE_ENV=production
ExecStart=__YNH_NPM__ start
ExecStart=__YNH_NPM__ __FINALPATH__/server.js
Restart=always
RestartSec=2
# Output to syslog
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=cryptpad
# systemd sets the open file limit to 4000 unless you override it
# cryptpad stores its data with the filesystem, so you should increase this to match the value of `ulimit -n`
# or risk EMFILE errors.
LimitNOFILE=1000000
PrivateDevices=true
ProtectControlGroups=true