-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonarrpush.service
39 lines (34 loc) · 977 Bytes
/
sonarrpush.service
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
#
# Sample service file to run Sonarr_Pusher
#
[Unit]
Description=Sonarr Pusher
After=syslog.target sonarr.service
[Service]
Type=simple
User=user
Group=user
WorkingDirectory=/home/user/Sonarr_Pusher/
Environment="trakt_type=trending" # enter trending or anticipated
Environment="addlimit=1" # limit the number of added shows per run
Environment="webhook=https://hooks.slack.com/services/XXXXXXXX/XXXXXXXXXXXXX"
Environment="trakt_api=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Environment="sonarr_api=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Environment="trakt_limit=75" # enter a value up to 100
ExecStart=/usr/bin/python /home/user/Sonarr_Pusher/traktToSonarr.py
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
#
# corrisponding timer file (sonarrpush.timer)
#
#[Unit]
#Description=Run sonarrpush daily
#[Timer]
#OnCalendar=daily
#Persistent=true
#OnBootSec=180
#OnUnitActiveSec=180
#[Install]
#WantedBy=timers.target