Files
pkgbuilds/telegram-bot-amplifier/telegram-bot-amplifier.service

42 lines
862 B
Desktop File

[Unit]
After=network-online.target
[Service]
User=telegram-bots
Environment=RUST_LOG=info
Environment=AMPLIFIER_BOT_CONFIG_FILE=/etc/telegram-bot-amplifier.json
ExecStart=/usr/bin/amplifier-bot
Restart=on-failure
RestartSec=5s
ReadOnlyPaths=/etc/telegram-bot-amplifier.json
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
PrivateUsers=yes
PrivateMounts=yes
DevicePolicy=closed
ProtectSystem=strict
ProtectHome=yes
ProtectClock=yes
ProtectHostname=yes
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK
CapabilityBoundingSet=
SystemCallArchitectures=native
SystemCallFilter=@system-service
ProtectKernelLogs=yes
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes
RemoveIPC=yes
[Install]
WantedBy=multi-user.target