2023-09-26 21:16:25 +02:00
|
|
|
[Unit]
|
|
|
|
Description=KOReader Sync Server
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
2025-01-08 15:11:04 +01:00
|
|
|
After=postgresql.service
|
2023-09-26 21:16:25 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
RestartSec=2s
|
|
|
|
Type=simple
|
|
|
|
User=myuser
|
|
|
|
Group=users
|
|
|
|
WorkingDirectory=/home/myuser
|
|
|
|
ExecStart=/usr/local/bin/kosyncrs
|
2025-01-08 15:11:04 +01:00
|
|
|
Environment=PG_URL=postgresql://kosync:password@localhost/kosync PORT=3003
|
2023-09-26 21:16:25 +02:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|