Ansible roles
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.

22 lines
467 B

[Unit]
Description=Online collaborative Whiteboard (Instance {{ wbo_id }})
After=syslog.target network.target
[Service]
Type=simple
User=wbo_{{ wbo_id }}
Group=wbo_{{ wbo_id }}
Environment=PORT={{ wbo_port }}
Environment=NODE_ENV='production'
ExecStart=/bin/node {{ wbo_root_dir }}/app/server/server.js
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=512M
Restart=on-failure
[Install]
WantedBy=multi-user.target