Make native systemd services the recommended production path for pobsync while keeping Docker Compose available for development and optional test installs. Add web, worker, and scheduler systemd unit templates, a native environment example, an optional nginx reverse proxy template, and an installer that creates the venv, service user, env file, units, and runs migrations/static collection. Allow native deployments to configure POBSYNC_BACKUP_ROOT directly and document the new production layout and update flow.
18 lines
467 B
Desktop File
18 lines
467 B
Desktop File
[Unit]
|
|
Description=pobsync queued backup worker
|
|
After=network-online.target pobsync-web.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=@POBSYNC_USER@
|
|
Group=@POBSYNC_GROUP@
|
|
WorkingDirectory=@POBSYNC_APP_DIR@
|
|
EnvironmentFile=@POBSYNC_ENV_FILE@
|
|
ExecStart=/bin/sh -c 'exec @POBSYNC_VENV_DIR@/bin/python manage.py run_pobsync_worker --loop --interval "${POBSYNC_WORKER_INTERVAL:-15}"'
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|