26 lines
652 B
Desktop File
26 lines
652 B
Desktop File
[Unit]
|
|
Description=Magent web frontend
|
|
Wants=network-online.target magent-backend.service
|
|
After=network-online.target magent-backend.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=magent
|
|
Group=magent
|
|
WorkingDirectory=/opt/magent/frontend
|
|
EnvironmentFile=/etc/magent/frontend.env
|
|
# If command -v node reports another system-wide path, update this line.
|
|
ExecStart=/usr/bin/node /opt/magent/frontend/.next/standalone/server.js
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=30
|
|
UMask=0077
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/opt/magent/frontend/.next/standalone/.next/cache
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|