perepost.service
Rama main · réplica de lectura del repositorio original.
# Running without Docker: the binary in /usr/local/bin/perepost, variables in
# /etc/perepost/env (same format as .env), routes in /etc/perepost/config.yaml.
# sudo cp perepost.service /etc/systemd/system/ && sudo systemctl enable --now perepost
[Unit]
Description=perepost: channel posts between Telegram and MAX
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/perepost
EnvironmentFile=/etc/perepost/env
Environment=CONFIG_FILE=/etc/perepost/config.yaml
Environment=STATE_FILE=/var/lib/perepost/perepost.sqlite
StateDirectory=perepost
Restart=always
RestartSec=10
# On shutdown the bot delivers posts it already received — up to 50 seconds
TimeoutStopSec=60
DynamicUser=yes
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
[Install]
WantedBy=multi-user.target