-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchatrixcd-debian.service
More file actions
42 lines (37 loc) · 1.04 KB
/
chatrixcd-debian.service
File metadata and controls
42 lines (37 loc) · 1.04 KB
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
38
39
40
41
42
[Unit]
Description=ChatrixCD - Matrix bot for CI/CD automation
Documentation=https://github.com/CJFWeatherhead/ChatrixCD
After=network-online.target
Wants=network-online.target
# Note: Alpine Linux with OpenRC is the primary deployment target.
# This systemd service file is provided for Debian/Ubuntu (secondary target).
# For Alpine Linux deployments, use chatrixcd.initd instead.
[Service]
Type=simple
User=chatrixcd
Group=chatrixcd
WorkingDirectory=/opt/chatrixcd
Environment="PATH=/opt/chatrixcd/.venv/bin"
ExecStart=/opt/chatrixcd/.venv/bin/chatrixcd
Restart=always
RestartSec=10
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/chatrixcd/store
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictNamespaces=true
LockPersonality=true
MemoryDenyWriteExecute=false
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=chatrixcd
[Install]
WantedBy=multi-user.target