add systemd files for everything

This commit is contained in:
Em 2021-11-02 07:44:15 -04:00
parent 220b21d572
commit ee2249fb4f
Signed by: emerson
GPG Key ID: 270669502DA603E3
13 changed files with 149 additions and 0 deletions

12
openproxyherder.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=oph server
Wants=network.target
After=network.target
[Service]
WorkingDirectory=/home/oph/.local/openproxyherder/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python openproxyherder.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=httpsocks checker
Wants=network.target
After=network.target
[Service]
Type=oneshot
Environment=PYTHONUNBUFFERED=1
WorkingDirectory=/root/openproxyherder/scripts/checkers
ExecStart=/usr/bin/python3 http_socks.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=http_socks timer
[Timer]
OnCalendar=*:00/3
Persistent=true
RandomizedDelaySec=120
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,12 @@
[Unit]
Description=vpngate checker
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/root/openproxyherder/scripts/checkers
ExecStart=/usr/bin/python3 vpngate.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=vpngate timer
[Timer]
OnCalendar=*:00/3
Persistent=true
RandomizedDelaySec=120
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=oph dronebl checker
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/dronebl/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python dronebl_check_tickets.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=dronebl check tickets timer
[Timer]
OnCalendar=*:0/10
RandomizedDelaySec=120
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=oph dronebl submitter
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/dronebl/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python dronebl_submitter.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=dronebl submitter timer
[Timer]
OnCalendar=*:0/5
RandomizedDelaySec=120
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=oph regex scraper
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/gatherers/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python regex_scraper.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=regex scraper timer
[Timer]
OnCalendar=*:0/10
RandomizedDelaySec=300
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=vpngate api scraper
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/gatherers/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python vpngate_api.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=vpngate api timer
[Timer]
OnCalendar=*:0/10
RandomizedDelaySec=300
Persistent=true
[Install]
WantedBy=timers.target