-
Notifications
You must be signed in to change notification settings - Fork 0
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
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.servicewith:
Requires=mnt-media.mount
After=network-online.target mnt-media.mount