Guest User

Untitled

a guest
Jul 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #
  2. # /etc/systemd/system/wavid.service
  3. # usage:
  4. # systemctl daemon-reload
  5. # systemctl enable wavid
  6. # systemctl start wavid
  7. #
  8.  
  9. [Unit]
  10. Description=Wavi daemon
  11. After=network.target
  12.  
  13. [Service]
  14. Environment=MALLOC_ARENA_MAX=1
  15. ExecStart=/usr/local/bin/wavid -conf=/root/.wavicore/wavi.conf -pid=/run/wavid/wavid.pid -disablewallet
  16. ExecStop=/usr/local/bin/wavi-cli stop
  17. RuntimeDirectory=wavid
  18. User=root
  19. Type=forking
  20. PIDFile=/run/wavid/wavid.pid
  21. Restart=on-failure
  22.  
  23. # Hardening measures
  24. ####################
  25.  
  26. # Provide a private /tmp and /var/tmp.
  27. PrivateTmp=true
  28.  
  29. # Mount /usr, /boot/ and /etc read-only for the process.
  30. ProtectSystem=full
  31.  
  32. # Disallow the process and all of its children to gain
  33. # new privileges through execve().
  34. NoNewPrivileges=true
  35.  
  36. # Use a new /dev namespace only populated with API pseudo devices
  37. # such as /dev/null, /dev/zero and /dev/random.
  38. PrivateDevices=true
  39.  
  40. # Deny the creation of writable and executable memory mappings.
  41. MemoryDenyWriteExecute=true
  42.  
  43. [Install]
  44. WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment