-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitcaster.service
More file actions
37 lines (30 loc) · 882 Bytes
/
commitcaster.service
File metadata and controls
37 lines (30 loc) · 882 Bytes
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
[Unit]
Description=CommitCaster - GitHub to Telegram Bot
Documentation=https://github.com/yourusername/CommitCaster
After=network.target
Wants=network-online.target
[Service]
Type=simple
User=YOUR_USERNAME
Group=YOUR_USERNAME
WorkingDirectory=/home/YOUR_USERNAME/CommitCaster
ExecStart=/home/YOUR_USERNAME/CommitCaster/commitcaster
# Переменные окружения (или используйте EnvironmentFile)
EnvironmentFile=/home/YOUR_USERNAME/CommitCaster/.env
# Перезапуск при падении
Restart=always
RestartSec=10
# Лимиты
LimitNOFILE=65536
# Логирование
StandardOutput=journal
StandardError=journal
SyslogIdentifier=commitcaster
# Безопасность
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/home/YOUR_USERNAME/CommitCaster
[Install]
WantedBy=multi-user.target