Skip to content

Systemd Service

Dave Townsend edited this page Oct 27, 2025 · 1 revision

The basic systemd service for flick-sync looks like this:

  • /etc/default/flick-sync
FLICK_SYNC_STORE=<path to store>

# If you want https support
#FLICK_SYNC_CERTIFICATE="<path to crt>"
#FLICK_SYNC_PRIVATE_KEY="<path to private key>"

# Disables syncing from the low-powered Pi
#FLICK_SYNC_DISABLE_SYNCING=1
  • /lib/systemd/system/flick-sync.service
[Unit]
Description=Synced Flicks DLNA Server
After=network-online.target

[Service]
Environment="RUST_LOG=flick_sync=warn,error"
EnvironmentFile=-/etc/default/flick-sync
ExecStart=/usr/bin/flick-sync serve
ExecReload=kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

Automounting storage

If your store is on an external hard disk then you may want to automount it on boot.

  • /lib/systemd/system/mnt-media.mount
[Unit]
Description=Media disk

[Mount]
What=UUID=<disk UUID>
Where=/mnt/media
Type=exfat
Options=umask=0000

[Install]
WantedBy=local-fs.target
  • Update the Unit section of /lib/systemd/system/flick-sync.service with:
Requires=mnt-media.mount
After=network-online.target mnt-media.mount

Clone this wiki locally