[Unit] Description=KOReader Sync Server After=syslog.target After=network.target After=redis.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" Restart=always [Install] WantedBy=multi-user.target