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:
parent
93d888f431
commit
3f1db856e1
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue