rainbox.email/app.service

21 lines
491 B
Desktop File

# Please customize values i.e. paths, user, group, WorkingDirectory based on your environment. Do not use the same
# user and group for different applications.
[Unit]
Description=Rainbox Email website
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=rainbox-email
Group=rainbox-email
WorkingDirectory=/home/rainbox-email/live
Restart=on-success
Environment=NODE_ENV=production
ExecStart=/bin/node .
ProtectSystem=yes
[Install]
WantedBy=multi-user.target