kosyncrs/systemd/kosyncrs.service
2025-01-08 15:11:04 +01:00

18 lines
359 B
Desktop File

[Unit]
Description=KOReader Sync Server
After=syslog.target
After=network.target
After=postgresql.service
[Service]
RestartSec=2s
Type=simple
User=myuser
Group=users
WorkingDirectory=/home/myuser
ExecStart=/usr/local/bin/kosyncrs
Environment=PG_URL=postgresql://kosync:password@localhost/kosync PORT=3003
Restart=always
[Install]
WantedBy=multi-user.target