24 lines
617 B
Desktop File
24 lines
617 B
Desktop File
[Unit]
|
|
Description=jellymove agent
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
# Run as the same user that owns your media (usually the jellyfin user).
|
|
User=jellyfin
|
|
Group=jellyfin
|
|
ExecStart=/usr/local/bin/jellymove --config /etc/jellymove/jellymove.toml run
|
|
Environment=JELLYMOVE_LOG=info
|
|
# systemd creates /var/lib/jellymove owned by User=; set data_dir to it.
|
|
StateDirectory=jellymove
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
# Transfers resume after a restart, so a plain stop is safe.
|
|
KillSignal=SIGTERM
|
|
NoNewPrivileges=true
|
|
ProtectSystem=full
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|