You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
806 B

  1. [Unit]
  2. Description=CryptPad API server
  3. [Service]
  4. ExecStart=/home/cryptpad/.nvm/versions/node/v12.14.0/bin/node /home/cryptpad/cryptpad/server.js
  5. # modify to match the location of your cryptpad repository
  6. WorkingDirectory=/home/cryptpad/cryptpad
  7. Restart=always
  8. # Restart service after 10 seconds if node service crashes
  9. RestartSec=2
  10. # Output to syslog
  11. StandardOutput=syslog
  12. StandardError=syslog
  13. SyslogIdentifier=cryptpad
  14. User=cryptpad
  15. Group=cryptpad
  16. # modify to match your working directory
  17. Environment='PWD="/home/cryptpad/cryptpad/cryptpad"'
  18. # systemd sets the open file limit to 4000 unless you override it
  19. # cryptpad stores its data with the filesystem, so you should increase this to match the value of `ulimit -n`
  20. # or risk EMFILE errors.
  21. LimitNOFILE=1000000
  22. [Install]
  23. WantedBy=multi-user.target