b2b.systemd

This commit is contained in:
2026-02-11 18:13:47 +03:00
parent 051c456d56
commit afd52e6ca4

28
scripts/b2b.systemd Normal file
View File

@@ -0,0 +1,28 @@
#LimitNOFILE=65535
RestartSec=2s
Type=simple
User=baggib2b
Group=baggib2b
WorkingDirectory=/opt/baggib2b/
ExecStart=/opt/baggib2b/baggib2b -dbname baggib2b -dbhost 127.0.0.1 -devmode=true -port 15801
Restart=always
#Environment=USER=baggib2b HOME=/opt/baggib2b =/opt/baggib2b
# enable to bind to a port below 1024 uncomment
###
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full
# Prevent accessing /home, /root and /run/user
ProtectHome=true
# Execute pre and post scripts as root, otherwise it does it as User=
PermissionsStartOnly=true
[Install]
WantedBy=multi-user.target