hostlist-generator/hostlist-generator.service

9 lines
228 B
SYSTEMD
Raw Permalink Normal View History

2024-02-18 10:32:34 +08:00
[Unit]
Description=HostList-Generator
[Service]
Type=oneshot
TimeoutSec=300
ExecStartPre=/bin/sh -c 'until ping -c1 raw.githubusercontent.com; do sleep 10; done'
ExecStart=/usr/bin/python3 '/opt/hostlist-generator/generate.py'