summarylogtreecommitdiffstats
path: root/lazylibrarian.service
blob: 0dfe516f8abcedef8ba06398e503124128f17322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Be sure to use `systemctl edit lazylibrarian` to modify this service with an
# override.conf because direct changes will be overwritten by package updates.
#
# A user per service with shared group setup would have an override like:
# [Service]
# Group=sharedgroupname
# UMask=002
#
# If your media directory is in /home (it shouldn't be)
# You will need to have an override like:
# [Service]
# PrivateUsers=false
# ProtectHome=false
#
# When running sonarr in LXC:
# [Service]
# PrivateUsers=false

[Unit]
Description=LazyLibrarian Daemon
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=lazylibrarian
Group=media
UMask=002
Environment=XDG_DATA_HOME=/var/lib/lazylibrarian
ExecStart=/usr/bin/python /usr/lib/lazylibrarian/LazyLibrarian.py --config /var/lib/lazylibrarian/lazylibrarian.ini --datadir /var/lib/lazylibrarian --nolaunch
# KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=10
TimeoutStopSec=20
WorkingDirectory=/var/lib/lazylibrarian

[Install]
WantedBy=multi-user.target