macsync/deploy/systemd/mac-sync-server.service

17 lines
324 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Mac Sync Server
After=network.target
[Service]
Type=simple
User=lilith
WorkingDirectory=/opt/mac-sync-server
ExecStart=/home/lilith/.bun/bin/bun run src/main.ts
Restart=on-failure
RestartSec=5
Environment=NODE_ENV=production
EnvironmentFile=/etc/mac-sync-server/env
[Install]
WantedBy=multi-user.target