Skip to content
YACReader
Help and support for Linux users.

Starting YACReaderLibraryServer with systemd

  • carmat06
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago - 9 years 11 months ago #2612 by carmat06
I upgraded to Linux Mint 18 this week (based on Ubuntu 16.04) and re-setup my entire home server. This system uses systemd, and I wanted to use it to start YACReaderLibraryServer. The cron method posted by selmf was not sufficient for my purposes, because I needed to make sure that the ZFS shared directory with my library was mounted before YAC starts. The service file below seems to be working ok, so I thought I would ask for feedback and share what worked for me.

Code:
[Unit] Description=YAC Reader server After=network.target AssertPathExists=/home/matt/mounts/ServerFolders/Comics [Service] User=matt Restart=always RestartSec=5 Type=simple ExecStart=/usr/bin/YACReaderLibraryServer start TimeoutStopSec=20 [Install] WantedBy=multi-user.target
Last edit: 9 years 11 months ago by carmat06.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #2613 by selmf
Looks good to me. One thing you could consider to add is directory access restriction for increased security. If you keep all your comics in one place the server only needs access to that directory and /home/user/.local/share/YACReader to work.

My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The following user(s) said Thank You: carmat06

Please Log in or Create an account to join the conversation.

Moderators: Luis Ángel
Powered by Kunena Forum

Thanks for downloading YACReader!

Your download is starting.

YACReader for iOS and Android

Connect to YACReaderLibrary to browse, read remotely and import comics. Your reading progress is synchronized across devices.

Download on the App Store Get it on Google Play Available at Amazon Appstore

Discover all the features on the iOS and Android pages, and learn how to use them in the iOS and Android user guides.

Support YACReader

YACReader for desktop and server is free to use, but it is not free to develop: maintaining this website, developer programs, code signing certificates, test devices and, of course, all the time it takes. Less than 0.01% of downloads end in a donation, so any amount counts.

By supporting the project you help keep it regularly updated and, most importantly, alive. Thanks!